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