...
|
...
|
@@ -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{
|
...
|
...
|
|