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

修改退换货申请

... ... @@ -320,7 +320,7 @@ class Orders extends Api
$this->error($validate->getError());
}
//查询订单
//查询订单,待发货
$status = $this->order_status;
$where = ['id'=>$order_id,'uid'=>$this->uid,'status'=>$status[2]];
$order = Common::findSoftWhereData('order',$where,'id');
... ... @@ -370,9 +370,9 @@ class Orders extends Api
$this->error($validate->getError());
}
//查询订单
//查询订单,待收货
$status = $this->order_status;
$where = ['id'=>$order_id,'uid'=>$this->uid,'status'=>$status[2]];
$where = ['id'=>$order_id,'uid'=>$this->uid,'status'=>$status[5]];
$order = Common::findSoftWhereData('order',$where,'id');
if($order){
$orderModel = new Order();
... ... @@ -381,7 +381,7 @@ class Orders extends Api
}else{
$returnFlag = 3;
}
$res = $orderModel->where($where)->update(['status'=>$status[3],'return_refund_flag'=>$returnFlag,'return_reason'=>$return_reason]);
$res = $orderModel->where($where)->update(['status'=>$status[6],'return_refund_flag'=>$returnFlag,'return_reason'=>$return_reason]);
if($res){
$this->error('申请成功');
}else{
... ...
... ... @@ -6013,7 +6013,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2019-12-04 19:57:05 </div>
Generated on 2019-12-04 20:07:34 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...