作者 jinglong
1 个管道 的构建 通过 耗费 1 秒

修改支付订单零元

@@ -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');