作者 郭文星

123

@@ -254,6 +254,8 @@ class Api extends Controller @@ -254,6 +254,8 @@ class Api extends Controller
254 ->where(['order_no' => $data['out_trade_no']]) 254 ->where(['order_no' => $data['out_trade_no']])
255 ->find(); 255 ->find();
256 file_put_contents("pcl_pay_logs.log", date("Y-m-d H:i:s") . "::" . json_encode($cks, JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND); 256 file_put_contents("pcl_pay_logs.log", date("Y-m-d H:i:s") . "::" . json_encode($cks, JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND);
  257 + $this->senWxmsgToDriverUser($cks['id']);
  258 +
257 if (!empty($cks) && $cks['is_pay'] == '2') { 259 if (!empty($cks) && $cks['is_pay'] == '2') {
258 //更新订单信息 260 //更新订单信息
259 $order['transaction_id'] = $data['transaction_id']; 261 $order['transaction_id'] = $data['transaction_id'];
@@ -265,7 +267,6 @@ class Api extends Controller @@ -265,7 +267,6 @@ class Api extends Controller
265 ->where(['order_no' => $data['out_trade_no']]) 267 ->where(['order_no' => $data['out_trade_no']])
266 ->update($order); 268 ->update($order);
267 SendMessage($cks['id']); 269 SendMessage($cks['id']);
268 - $this->senWxmsgToDriverUser($cks['id']);  
269 //生成订单日志 270 //生成订单日志
270 if ($rs) { 271 if ($rs) {
271 if($order['type']==1){ 272 if($order['type']==1){