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