wesmiler 5 месяцев назад
Родитель
Сommit
7a8d2feb4f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/Api/OrderService.php

+ 1 - 1
app/Services/Api/OrderService.php

@@ -334,7 +334,7 @@ class OrderService extends BaseService
 
         // 清空购物车结算商品
         if($submitType == 'cart'){
-            CartModel::whereIn('goods_id',$ids)->where(['user_id'=>$userId,'mark'=>1])->update(['mark'=>0,'update_time'=>time()]);
+            CartModel::whereIn('goods_id',$ids)->where(['user_id'=>$userId,'mark'=>1])->update(['mark'=>0,'num'=>0,'update_time'=>time()]);
             RedisService::clear("caches:goods:cartCount:{$userId}");
         }