...
|
...
|
@@ -109,7 +109,6 @@ class Pay extends Api |
|
|
}
|
|
|
//在此编写订单逻辑
|
|
|
$PayOrderInfo = Db::name('pay_order')->where('PayOrder', $data['out_trade_no'])->find();
|
|
|
$OrderInfo = Db::name('order')->where('OrderSn', $PayOrderInfo['OrderSn'])->find();
|
|
|
$UnionID = Db::name('user')->where('id', $PayOrderInfo['user_id'])->value('UnionID');
|
|
|
//修改支付订单状态
|
|
|
$UpdateStatus = Db::name('pay_order')->where('PayOrder', $data['out_trade_no'])->update(
|
...
|
...
|
@@ -120,6 +119,7 @@ class Pay extends Api |
|
|
'pay_time' => time()
|
|
|
]
|
|
|
);
|
|
|
$OrderInfo = Db::name('order')->where('OrderSn', $PayOrderInfo['OrderSn'])->find();
|
|
|
if (!$UpdateStatus) {
|
|
|
$this->error('修改支付订单状态失败', 0);
|
|
|
die;
|
...
|
...
|
|