wesmiler 2 лет назад
Родитель
Сommit
19994396b6
1 измененных файлов с 1 добавлено и 1 удалено
  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;