|
|
@@ -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)];
|