From 0fc555d17b49cee6f9fc89d242253c9198dacf3c Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Thu, 31 Oct 2019 16:48:18 +0800 Subject: [PATCH] &action=pay --- Application/Sdk/Controller/UserHController.class.php | 4 ++-- Application/Sdk/View/default/UserH/platform_pay_show.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 @@

平台币充值

--> -
+