@@ -318,7 +318,7 @@ class GoodsService extends BaseService
$this->error = 2901;
return false;
}
-
+
RedisService::set($cacheKey, ['sku_list'=> array_values($skuList), 'goods'=> $goods], rand(2,3));
return ['sku_list'=> array_values($skuList), 'goods'=> $goods];
@@ -364,6 +364,7 @@ class OrderService extends BaseService
$expense = isset($result['expense'])? floatval($result['expense']) : 0;
$servicePrice = isset($result['service_price'])? floatval($result['service_price']) : 0;
if(empty($result)){
+ RedisService::clear($cacheKey);
$this->error = SupplyService::make()->getError();