diff --git a/app/api/controller/order/OrderController.php b/app/api/controller/order/OrderController.php index f88ec318..be00fdfb 100644 --- a/app/api/controller/order/OrderController.php +++ b/app/api/controller/order/OrderController.php @@ -459,7 +459,10 @@ class OrderController extends BaseApiController OrderLogic::dealRefund($uid, $params); $detail = StoreOrder::where('id', $params['id'])->where('refund_type',1)->where('status','in',[0,1])->find(); 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('申请成功'); }