...
|
...
|
@@ -342,7 +342,7 @@ class Orders extends Api |
|
|
$orderModel = new Order();
|
|
|
$res = $orderModel->where($where)->update(['status'=>$status[3],'return_refund_flag'=>1,'refund_reason'=>$refund_reason]);//退款申请中
|
|
|
if($res){
|
|
|
$this->error('申请成功');
|
|
|
$this->success('申请成功');
|
|
|
}else{
|
|
|
$this->error('申请失败');
|
|
|
}
|
...
|
...
|
@@ -388,7 +388,7 @@ class Orders extends Api |
|
|
$orderModel = new Order();
|
|
|
$res = $orderModel->where($where)->update(['status'=>$status[2],'return_refund_flag'=>0,'refund_reason'=>'']);//待发货
|
|
|
if($res){
|
|
|
$this->error('撤销成功');
|
|
|
$this->success('撤销成功');
|
|
|
}else{
|
|
|
$this->error('撤销失败');
|
|
|
}
|
...
|
...
|
@@ -443,7 +443,7 @@ class Orders extends Api |
|
|
}
|
|
|
$res = $orderModel->where($where)->update(['status'=>$status[6],'return_refund_flag'=>$returnFlag,'return_reason'=>$return_reason]);//退换货申请中
|
|
|
if($res){
|
|
|
$this->error('申请成功');
|
|
|
$this->success('申请成功');
|
|
|
}else{
|
|
|
$this->error('申请失败');
|
|
|
}
|
...
|
...
|
@@ -489,7 +489,7 @@ class Orders extends Api |
|
|
$orderModel = new Order();
|
|
|
$res = $orderModel->where($where)->update(['status'=>$status[5],'return_refund_flag'=>0,'return_reason'=>'']);//待收货
|
|
|
if($res){
|
|
|
$this->error('撤销成功');
|
|
|
$this->success('撤销成功');
|
|
|
}else{
|
|
|
$this->error('撤销失败');
|
|
|
}
|
...
|
...
|
|