Browse Source

取消订单错误处理

master
Lemon 6 years ago
parent
commit
3a90c0b994
  1. 5
      app/Service/OrderService.php

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

Loading…
Cancel
Save