浏览代码

转账提示

afa 7 月之前
父节点
当前提交
a26ba6d924
共有 3 个文件被更改,包括 4 次插入2 次删除
  1. 1 1
      application/api/controller/Ledger.php
  2. 2 1
      application/api/lang/en.php
  3. 1 0
      application/api/lang/zh-cn.php

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

@@ -129,7 +129,7 @@ class Ledger extends Api
             $freeze = $ledgerWalletModel::getWalletFrozen($this->auth->id);
             //剩余冻结金额
             $available = bcsub($freeze, config('min_frozen'), 2);
-            if(bccomp($amount, $available, 2) > 0) throw new Exception(__("余额不足请前往充值"), 15001);
+            if(bccomp($amount, $available, 2) > 0) throw new Exception(__("转账后余额不能低于9.9"), 15001);
             
             // 更新USDT和账变
             $ledgerWalletModel->changeWalletAccount($this->auth->id, Asset::FROZEN, -$amount, LedgerFrozenChangeModel::Payment, $user['id']);

+ 2 - 1
application/api/lang/en.php

@@ -50,6 +50,7 @@ return [
     '质押商品数量与订单数量不匹配'                                                 => 'The pledge product quantity does not match the order quantity',   
     '质抵活动不存在'                                                              => 'The pledge activity does not exist',  
     '质抵活动已结束'                                                              => 'The pledge activity has ended',
-    '正在挖矿中,请稍后再试'                                                       => 'Mining is in progress, please try again later', 
+    '正在挖矿中,请稍后再试'                                                       => 'Mining is in progress, please try again later',
+    '转账后余额不能低于9.9'                                                        => 'The balance after transfer cannot be less than 9.9',    
 
 ]; 

+ 1 - 0
application/api/lang/zh-cn.php

@@ -142,5 +142,6 @@ return [
     '质抵活动不存在'                                                              => '质抵活动不存在',  
     '质抵活动已结束'                                                              => '质抵活动已结束',
     '正在挖矿中,请稍后再试'                                                        => '正在挖矿中,请稍后再试',
+    '转账后余额不能低于9.9'                                                         => '转账后余额不能低于9.9', 
 
 ];