feat(OrderController): 增加退款申请成功后的返回信息
This commit is contained in:
parent
6a9dc9ddc2
commit
2d3b99b370
@ -459,7 +459,10 @@ class OrderController extends BaseApiController
|
|||||||
OrderLogic::dealRefund($uid, $params);
|
OrderLogic::dealRefund($uid, $params);
|
||||||
$detail = StoreOrder::where('id', $params['id'])->where('refund_type',1)->where('status','in',[0,1])->find();
|
$detail = StoreOrder::where('id', $params['id'])->where('refund_type',1)->where('status','in',[0,1])->find();
|
||||||
if($detail){
|
if($detail){
|
||||||
StoreOrderLogic::refund($detail,['order_id'=>$detail['order_id']]);
|
$res=StoreOrderLogic::refund($detail,['order_id'=>$detail['order_id']]);
|
||||||
|
if($res!=false){
|
||||||
|
return $this->success($res);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $this->success('申请成功');
|
return $this->success('申请成功');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user