Browse Source

alipay支付完成

lizhen_gitee 3 years ago
parent
commit
d73e6444b7
1 changed files with 3 additions and 0 deletions
  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'];