wesmiler %!s(int64=2) %!d(string=hai) anos
pai
achega
19994396b6
Modificáronse 1 ficheiros con 1 adicións e 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;