lizhen_gitee преди 3 години
родител
ревизия
d73e6444b7
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      application/index/controller/Recharge.php

+ 3 - 0
application/index/controller/Recharge.php

@@ -45,6 +45,9 @@ class Recharge extends Frontend
 
         //赋值money
         $recharge_config = Db::name('paygold_webcon')->where('id',$rc_id)->find();
+        if(!$recharge_config){
+            $this->error('请选择充值金额');
+        }
         $money = $recharge_config['money'];
         $gold = $recharge_config['gold'];