|
@@ -33,8 +33,8 @@ use Tron\TRX;
|
|
|
class WalletService extends BaseService
|
|
class WalletService extends BaseService
|
|
|
{
|
|
{
|
|
|
protected $apiUrl = '';
|
|
protected $apiUrl = '';
|
|
|
-// protected $bianUrl = 'https://p2p-xl.com/bapi/c2c/v2/public/c2c/adv/quoted-price';
|
|
|
|
|
- protected $bianUrl = 'https://p2p.binance.com/bapi/c2c/v2/public/c2c/adv/quoted-price';
|
|
|
|
|
|
|
+ protected $bianUrl = 'https://p2p-xl.mp.dongerkj.com/bapi/c2c/v2/public/c2c/adv/quoted-price';
|
|
|
|
|
+// protected $bianUrl = 'https://p2p.binance.com/bapi/c2c/v2/public/c2c/adv/quoted-price';
|
|
|
protected $config = [];
|
|
protected $config = [];
|
|
|
// 静态对象
|
|
// 静态对象
|
|
|
protected static $instance = null;
|
|
protected static $instance = null;
|
|
@@ -802,7 +802,7 @@ class WalletService extends BaseService
|
|
|
* USDT 币安汇率
|
|
* USDT 币安汇率
|
|
|
* @return string
|
|
* @return string
|
|
|
*/
|
|
*/
|
|
|
- public function getBianRatePrice($refresh = false)
|
|
|
|
|
|
|
+ public function getBianRatePrice($refresh = true)
|
|
|
{
|
|
{
|
|
|
// 币安买价
|
|
// 币安买价
|
|
|
$cacheKey ="caches:wallets:usdt_rate";
|
|
$cacheKey ="caches:wallets:usdt_rate";
|