|
|
@@ -28,8 +28,9 @@ class Ledger extends Api
|
|
|
*/
|
|
|
public function assets()
|
|
|
{
|
|
|
-
|
|
|
- $res['assets'] = $this->auth->balance;
|
|
|
+
|
|
|
+ $chabao = LedgerWalletModel::getWalletChaBao($this->auth->getTokenUserID());
|
|
|
+ $res['assets'] = $chabao;
|
|
|
$res['chabao_rate'] = getConfig('chabao_rate'); //茶宝汇率
|
|
|
$res['withdrawal_fee']= getConfig('withdrawal_fee'); //提现收费
|
|
|
$res['transfes_fee'] = getConfig('transfer_fee'); //转让手续费比例
|
|
|
@@ -37,8 +38,8 @@ class Ledger extends Api
|
|
|
$res['coin_list'] = [
|
|
|
[
|
|
|
'coin_name' => 'USDT',
|
|
|
- 'coin_key' => 'usdt',
|
|
|
- 'amount' => LedgerWalletModel::getWalletChaBao($this->auth->getTokenUserID()),
|
|
|
+ 'coin_key' => 'usdt',
|
|
|
+ 'amount' => $chabao,
|
|
|
'frozen_amount' => $this->auth->frozen_amount //冻结金额
|
|
|
]
|
|
|
];
|