diff --git a/Application/Sdk/Controller/UserHController.class.php b/Application/Sdk/Controller/UserHController.class.php index 568b4a18..842062d9 100644 --- a/Application/Sdk/Controller/UserHController.class.php +++ b/Application/Sdk/Controller/UserHController.class.php @@ -66,8 +66,8 @@ class UserHController extends BaseController public function platform_pay() { $u = M('user', 'tab_')->where(['id' => $this->userId])->find(); - $post = I('post.'); - if(empty($post['money'])) { + $money = I('money', 0); + if(!$money) { $this->error('金额不能为空'); } // if(!is_int($post['money'])) { diff --git a/Application/Sdk/View/default/UserH/platform_pay_show.html b/Application/Sdk/View/default/UserH/platform_pay_show.html index ed9d2719..2d10503d 100644 --- a/Application/Sdk/View/default/UserH/platform_pay_show.html +++ b/Application/Sdk/View/default/UserH/platform_pay_show.html @@ -14,7 +14,7 @@

平台币充值

--> -
+