Browse Source

充值禁止提示

zhangxiaobin 1 year ago
parent
commit
e724227aab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Money.php

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

@@ -61,7 +61,7 @@ class Money extends Common
             $this->error('金额必须是整数');
         }
         if ($this->auth->power->recharge == 1) {//禁止充值
-            throw new Exception('禁止充值');
+            $this->error('禁止充值');
         }
         $user_id = $this->auth->id;
         // 获取充值金额配置信息