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