From 3a90c0b9942b87074d9c61afcd12580c690e01f1 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Wed, 26 Aug 2020 18:21:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E8=AE=A2=E5=8D=95=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/OrderService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Service/OrderService.php b/app/Service/OrderService.php index 6db3f6c..3b0e76a 100644 --- a/app/Service/OrderService.php +++ b/app/Service/OrderService.php @@ -738,8 +738,11 @@ class OrderService implements OrderServiceInterface * @inheritDoc */ public function onlineCancel($global_order_id){ - OrderMain::where('global_order_id',$global_order_id) + $sqlRes = OrderMain::where('global_order_id',$global_order_id) ->update(['state' => OrderMain::ORDER_STATE_CANCEL]); + if(!$sqlRes){ + return false; + } //撤销redis 用券记录 $redisRes = $this->couponService->orderRefundCoupons($global_order_id); //撤销特价商品购买记录