wesmiler hace 2 años
padre
commit
19994396b6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;