Merge branch 'master' of http://111.229.174.37:3000/Food/food_server
This commit is contained in:
commit
717854ba8f
@ -92,7 +92,8 @@ class PayController extends PublicController
|
|||||||
$orderDb = D('order'); // 实例化订单模型
|
$orderDb = D('order'); // 实例化订单模型
|
||||||
$data['status'] = 'pending'; //付款状态
|
$data['status'] = 'pending'; //付款状态
|
||||||
$data['pay_sn'] = $result['transaction_id']; //支付订单号
|
$data['pay_sn'] = $result['transaction_id']; //支付订单号
|
||||||
$orderDb->where($where)->data($data)->save(); //更改订单
|
$a = $orderDb->where($where)->data($data)->save(); //更改订单
|
||||||
|
$this->publish('demo', $a);
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// 捕获并处理可能的异常
|
// 捕获并处理可能的异常
|
||||||
|
Loading…
Reference in New Issue
Block a user