正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
@@ -107,6 +107,7 @@ class Pay extends Api | @@ -107,6 +107,7 @@ class Pay extends Api | ||
107 | $arr['total_price'] = $data['total_price']; | 107 | $arr['total_price'] = $data['total_price']; |
108 | //支付金额为0,直接更新为支付成功 | 108 | //支付金额为0,直接更新为支付成功 |
109 | if($data['total_price'] == 0){ | 109 | if($data['total_price'] == 0){ |
110 | + $arr['status'] = $status[2]; | ||
110 | $res1 = $orderModel->where(['order_sn'=>$order_sn,'uid'=>$this->uid])->update($arr); | 111 | $res1 = $orderModel->where(['order_sn'=>$order_sn,'uid'=>$this->uid])->update($arr); |
111 | if($res1){ | 112 | if($res1){ |
112 | $res2 = Common::findSoftWhereData('order',['order_sn'=>$order_sn,'uid'=>$this->uid],'id order_id'); | 113 | $res2 = Common::findSoftWhereData('order',['order_sn'=>$order_sn,'uid'=>$this->uid],'id order_id'); |
-
请 注册 或 登录 后发表评论