From fd53997094b24c90ddfbbea4fcc42993f1c1dc71 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Sun, 17 Nov 2019 17:09:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0->=E5=85=85?= =?UTF-8?q?=E5=80=BC->=E5=B9=B3=E5=8F=B0=E5=B8=81=E8=AE=A2=E5=8D=95->?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=B8=81=E5=9B=9E=E6=94=B6--=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/PromoteCoinController.class.php | 3 +++ Application/Admin/View/PromoteCoin/deduct.html | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Application/Admin/Controller/PromoteCoinController.class.php b/Application/Admin/Controller/PromoteCoinController.class.php index c0cc1bc28..a4dd37503 100644 --- a/Application/Admin/Controller/PromoteCoinController.class.php +++ b/Application/Admin/Controller/PromoteCoinController.class.php @@ -110,6 +110,9 @@ class PromoteCoinController extends ThinkController public function deduct() { + if (empty(I('user_id'))) { + $this->error('请输入正确的玩家账号'); + } $this->m_title = '平台币收回'; $this->assign('commonset', M('Kuaijieicon')->where(['url' => 'PromoteCoin/deduct_lists', 'status' => 1])->find()); $this->add(2, 'deduct_lists', $_REQUEST['typee'] ? $_REQUEST['typee'] : 1); diff --git a/Application/Admin/View/PromoteCoin/deduct.html b/Application/Admin/View/PromoteCoin/deduct.html index c25e4db67..7a039908e 100644 --- a/Application/Admin/View/PromoteCoin/deduct.html +++ b/Application/Admin/View/PromoteCoin/deduct.html @@ -161,6 +161,8 @@ $('#user_account').change(function () { var msgElement = $('.user-account-msg'); msgElement.text(data.msg); msgElement.show(); + $('#user_id').val(''); + $(".coin_yue2").val('0.00'); } }, error:function (result) {