From 2d3b99b37021cf5cb0baca7ec4e0ae962aaf98cb Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 29 Jul 2024 14:39:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(OrderController):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=80=80=E6=AC=BE=E7=94=B3=E8=AF=B7=E6=88=90=E5=8A=9F=E5=90=8E?= =?UTF-8?q?=E7=9A=84=E8=BF=94=E5=9B=9E=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/order/OrderController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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('申请成功'); }