wesmiler 5 tháng trước cách đây
mục cha
commit
65bb38f5ab
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/Services/Api/OrderService.php

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

@@ -335,6 +335,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()]);
+            RedisService::clear("caches:goods:cartCount:{$userId}");
         }
 
         // 用户操作记录