|
|
@@ -710,7 +710,7 @@ class UsdtWalletService extends BaseService
|
|
|
|
|
|
$result = $result ? floatval($result) : '0.00';
|
|
|
RedisService::set($cacheKey, $result, rand(5, 10));
|
|
|
- RedisService::set($cacheKey.'_lock', true, rand(5, 10));
|
|
|
+ RedisService::set($cacheKey.'_lock', true, rand(10, 20));
|
|
|
return $result;
|
|
|
|
|
|
} catch (\Exception $exception) {
|
|
|
@@ -758,7 +758,7 @@ class UsdtWalletService extends BaseService
|
|
|
|
|
|
$result = $result ? floatval($result) : '0.00';
|
|
|
RedisService::set($cacheKey, $result, rand(5, 10));
|
|
|
- RedisService::set($cacheKey.'_lock', true, rand(5, 10));
|
|
|
+ RedisService::set($cacheKey.'_lock', true, rand(10, 20));
|
|
|
return $result;
|
|
|
|
|
|
} catch (\Exception $exception) {
|
|
|
@@ -1026,7 +1026,7 @@ class UsdtWalletService extends BaseService
|
|
|
$balance = isset($result['result']) ? hexdec($result['result']) : 0.00;
|
|
|
$balance = $balance ? floatval($balance/pow(10,18)) : '0.00';
|
|
|
RedisService::set($cacheKey, $balance, rand(5, 10));
|
|
|
- RedisService::set($cacheKey.'_lock', true, rand(5, 10));
|
|
|
+ RedisService::set($cacheKey.'_lock', true, rand(10, 20));
|
|
|
return $balance;
|
|
|
} catch (\Exception $exception) {
|
|
|
$this->error = $exception->getMessage();
|
|
|
@@ -1089,7 +1089,7 @@ class UsdtWalletService extends BaseService
|
|
|
|
|
|
$balance = $balance? $balance : '0.00';
|
|
|
RedisService::set($cacheKey, $balance, rand(5, 10));
|
|
|
- RedisService::set($cacheKey.'_lock', true, rand(5, 10));
|
|
|
+ RedisService::set($cacheKey.'_lock', true, rand(10, 20));
|
|
|
return $balance;
|
|
|
} catch (\Exception $exception) {
|
|
|
$this->error = $exception->getMessage();
|