瀏覽代碼

资产首页

afa 11 月之前
父節點
當前提交
75bb145639
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      application/api/controller/Ledger.php

+ 5 - 4
application/api/controller/Ledger.php

@@ -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 //冻结金额
             ]
         ];