afa 4 сар өмнө
parent
commit
0cc378d154

+ 3 - 3
application/api/controller/Ledger.php

@@ -159,7 +159,7 @@ class Ledger extends Api
     {
         $this->success('', ['chabao'=>['value' => getConfig('chabao_giveaway'), 'text' => getConfig('chabao_giveaway_txt')], 
         'frozen'=>['value' => getConfig('frozen_transfer'), 'text' => getConfig('frozen_transfer_txt')],
-        'teac'=>['value' => config('app.teac_giveaway'), 'text' => config('app.teac_giveaway_txt')]]);
+        'teac'=>['value' => config('teac_giveaway'), 'text' => config('teac_giveaway_txt')]]);
     }
     
     /**
@@ -174,7 +174,7 @@ class Ledger extends Api
         if(empty($amount) || empty($account)){
             $this->error(__('Parameter error'));
         }
-        $real   = bcsub($amount, bcmul(config('app.teac_giveaway'), $amount, 2), 2) ; // 手续费
+        $real   = bcsub($amount, bcmul(getConfig('chabao_giveaway'), $amount, 2), 2) ; // 手续费
         // 启动事务
         Db::startTrans();
         try {
@@ -211,7 +211,7 @@ class Ledger extends Api
         if(empty($amount) || empty($account)){
             $this->error(__('Parameter error'));
         }
-        $real   = bcsub($amount, bcmul(getConfig('teac_giveaway'), $amount, 2), 2) ; // 手续费
+        $real   = bcsub($amount, bcmul(config('teac_giveaway'), $amount, 2), 2) ; // 手续费
         // 启动事务
         Db::startTrans();
         try {