wesmiler 2 năm trước cách đây
mục cha
commit
64bef3d541
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/Services/WalletService.php

+ 2 - 2
app/Services/WalletService.php

@@ -818,10 +818,10 @@ class WalletService extends BaseService
         $price = isset($data['referencePrice']) ? moneyFormat($data['referencePrice'],2) : '0.00';
         RedisService::set("caches:wallets:usdt_buy_result", ['url'=> $this->bianUrl,'result' => $result,'rates'=>$price,'data'=>$data], 7200);
         if($price){
-            RedisService::set($cacheKey, $price, rand(120,200));
+            RedisService::set($cacheKey, $price, rand(3600,7200));
         }else{
             $price = ConfigService::make()->getConfigByCode('usdt_cny_price',7.2);
-            RedisService::set($cacheKey, $price, rand(60,120));
+            RedisService::set($cacheKey, $price, rand(1200,3600));
         }
         return $price>0? $price : 0;
     }