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); //撤销特价商品购买记录