作者 郭文星

123

@@ -265,7 +265,7 @@ class Api extends Controller @@ -265,7 +265,7 @@ class Api extends Controller
265 ->where(['order_no' => $data['out_trade_no']]) 265 ->where(['order_no' => $data['out_trade_no']])
266 ->update($order); 266 ->update($order);
267 SendMessage($cks['id']); 267 SendMessage($cks['id']);
268 - 268 + $this->senWxmsgToDriverUser($cks['id']);
269 //生成订单日志 269 //生成订单日志
270 if ($rs) { 270 if ($rs) {
271 if($order['type']==1){ 271 if($order['type']==1){
@@ -281,7 +281,7 @@ class Api extends Controller @@ -281,7 +281,7 @@ class Api extends Controller
281 $orderlog['createtime'] = time(); 281 $orderlog['createtime'] = time();
282 Db::name('order_log')->insert($orderlog); 282 Db::name('order_log')->insert($orderlog);
283 //$this->SendMessage($cks['id']); 283 //$this->SendMessage($cks['id']);
284 - $this->senWxmsgToDriverUser($cks['id']); 284 +
285 } 285 }
286 } 286 }
287 287
@@ -313,7 +313,7 @@ class Api extends Controller @@ -313,7 +313,7 @@ class Api extends Controller
313 $ywt_appid = 'wxb7dd0c03865a94e0'; 313 $ywt_appid = 'wxb7dd0c03865a94e0';
314 $pagepath = ''; 314 $pagepath = '';
315 $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath); 315 $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath);
316 - file_put_contents("pcl_wct_send.log", date("Y-m-d H:i:s") . "1-2-" . json_encode($res, JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND); 316 + //file_put_contents("pcl_wct_send.log", date("Y-m-d H:i:s") . "1-2-" . json_encode($res, JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND);
317 } 317 }
318 } 318 }
319 } 319 }