正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -109,7 +109,6 @@ class Pay extends Api | @@ -109,7 +109,6 @@ class Pay extends Api | ||
109 | } | 109 | } |
110 | //在此编写订单逻辑 | 110 | //在此编写订单逻辑 |
111 | $PayOrderInfo = Db::name('pay_order')->where('PayOrder', $data['out_trade_no'])->find(); | 111 | $PayOrderInfo = Db::name('pay_order')->where('PayOrder', $data['out_trade_no'])->find(); |
112 | - $OrderInfo = Db::name('order')->where('OrderSn', $PayOrderInfo['OrderSn'])->find(); | ||
113 | $UnionID = Db::name('user')->where('id', $PayOrderInfo['user_id'])->value('UnionID'); | 112 | $UnionID = Db::name('user')->where('id', $PayOrderInfo['user_id'])->value('UnionID'); |
114 | //修改支付订单状态 | 113 | //修改支付订单状态 |
115 | $UpdateStatus = Db::name('pay_order')->where('PayOrder', $data['out_trade_no'])->update( | 114 | $UpdateStatus = Db::name('pay_order')->where('PayOrder', $data['out_trade_no'])->update( |
@@ -120,6 +119,7 @@ class Pay extends Api | @@ -120,6 +119,7 @@ class Pay extends Api | ||
120 | 'pay_time' => time() | 119 | 'pay_time' => time() |
121 | ] | 120 | ] |
122 | ); | 121 | ); |
122 | + $OrderInfo = Db::name('order')->where('OrderSn', $PayOrderInfo['OrderSn'])->find(); | ||
123 | if (!$UpdateStatus) { | 123 | if (!$UpdateStatus) { |
124 | $this->error('修改支付订单状态失败', 0); | 124 | $this->error('修改支付订单状态失败', 0); |
125 | die; | 125 | die; |
-
请 注册 或 登录 后发表评论