wesmiler 5 小時之前
父節點
當前提交
ec99aba9e6
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Services/Api/CartService.php

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

@@ -221,6 +221,7 @@ class CartService extends BaseService
             $this->model->where(['id' => $cartId])->update(['num' => $num,'update_time' => time()]);
         }
 
+        $this->error = '操作成功';
         RedisService::clear($cacheKey.'_lock');
         RedisService::clear("caches:goods:cartCount:{$userId}");
         return ['id' => $cartId, 'count' => $this->getCount($userId)];