afa 8 сар өмнө
parent
commit
bd02ea39aa

+ 1 - 2
application/api/controller/Ledger.php

@@ -35,9 +35,8 @@ class Ledger extends Api
         $wallet = LedgerWalletModel::getWallet($this->auth->id);
         $res['assets']       = $wallet->token;
         $res['chabao_rate']  = $config['chabao_rate'];    //茶宝汇率
-        $res['withdrawal_fee']= $config['withdrawal_fee'];//提现收费
         $res['transfes_fee']  = $config['transfer_fee'];  //转让手续费比例
-        $res['transfes_txt']  = $config['transfes_txt'];   //转让文字表述
+        $res['transfes_txt']  = $config['transfes_txt'];  //转让文字表述
         $res['coin_list'] = [
             [
                 'coin_name' => '茶宝',

+ 2 - 2
application/common/model/LedgerWalletModel.php

@@ -71,9 +71,9 @@ class LedgerWalletModel extends Model
     }
 
 
-    public function getWallet($userID)
+    public static function getWallet($userID)
     {
-        return $this->where('user_id', $userID)->find();
+        return self::where('user_id', $userID)->find();
     }
 
     /**