wesmiler 2 years ago
parent
commit
19994396b6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Services/Api/GoodsService.php

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

@@ -342,7 +342,7 @@ class GoodsService extends BaseService
         $result = SupplyService::make()->getApiData('getFreight',['address_id'=> intval($addressId),'sku_list'=> $skuList]);
         $freight = isset($result['freight'])? floatval($result['freight']) : -1;
         if($freight>=0){
-            RedisService::set($cacheKey, ['freight'=>$freight], rand(3,5));
+            RedisService::set($cacheKey, ['freight'=>$freight], rand(5,10));
             return ['freight'=>$freight];
         }else{
             $this->error = 1052;