正在显示
2 个修改的文件
包含
1 行增加
和
2 行删除
@@ -96,7 +96,6 @@ class AdminStatisticsController extends AdminBaseController{ | @@ -96,7 +96,6 @@ class AdminStatisticsController extends AdminBaseController{ | ||
96 | $this->assign('monthData',json_encode($Month_statistics)); | 96 | $this->assign('monthData',json_encode($Month_statistics)); |
97 | $this->assign('monthMoney',json_encode($Month_money)); | 97 | $this->assign('monthMoney',json_encode($Month_money)); |
98 | 98 | ||
99 | - | ||
100 | //时间段统计 | 99 | //时间段统计 |
101 | $interval=array(); | 100 | $interval=array(); |
102 | $sql="SELECT sleep_equipment.hospital,count(*) as num FROM sleep_order INNER JOIN sleep_equipment ON sleep_order.eq_name=sleep_equipment.name where (".$where." (FROM_UNIXTIME(start_time,'%H:%i:%S')>'00:00:00' AND FROM_UNIXTIME(start_time,'%H:%i:%S')<'07:00:00') OR (FROM_UNIXTIME(start_time,'%H:%i:%S')>'21:00:00' AND FROM_UNIXTIME(start_time,'%H:%i:%S')<'24:00:00'))"; | 101 | $sql="SELECT sleep_equipment.hospital,count(*) as num FROM sleep_order INNER JOIN sleep_equipment ON sleep_order.eq_name=sleep_equipment.name where (".$where." (FROM_UNIXTIME(start_time,'%H:%i:%S')>'00:00:00' AND FROM_UNIXTIME(start_time,'%H:%i:%S')<'07:00:00') OR (FROM_UNIXTIME(start_time,'%H:%i:%S')>'21:00:00' AND FROM_UNIXTIME(start_time,'%H:%i:%S')<'24:00:00'))"; |
@@ -612,7 +612,7 @@ class OrderController extends HomeBaseController{ | @@ -612,7 +612,7 @@ class OrderController extends HomeBaseController{ | ||
612 | Db::name('order')->where('id',$order['id'])->update(['group_money'=>($order['price']-$user['fee'])]); | 612 | Db::name('order')->where('id',$order['id'])->update(['group_money'=>($order['price']-$user['fee'])]); |
613 | $body = '支付'; | 613 | $body = '支付'; |
614 | $notify_url = url('order/group', '', '', true);//回调地址 | 614 | $notify_url = url('order/group', '', '', true);//回调地址 |
615 | - $out_trade_no = $order['order_no'] . $this->create_noncestr(4); | 615 | + $out_trade_no = $order['order_no']; |
616 | $wxPay = new WeixinPay($user['open_id'], $out_trade_no, $body, ($order['price']-$user['fee'])*100, $notify_url); | 616 | $wxPay = new WeixinPay($user['open_id'], $out_trade_no, $body, ($order['price']-$user['fee'])*100, $notify_url); |
617 | $pay = $wxPay->pay(); | 617 | $pay = $wxPay->pay(); |
618 | if (isset($pay['package'])) { | 618 | if (isset($pay['package'])) { |
-
请 注册 或 登录 后发表评论