diff --git a/Application/Admin/Controller/PromoteCoinController.class.php b/Application/Admin/Controller/PromoteCoinController.class.php index a4dd37503..8bd39244f 100644 --- a/Application/Admin/Controller/PromoteCoinController.class.php +++ b/Application/Admin/Controller/PromoteCoinController.class.php @@ -110,9 +110,6 @@ 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); @@ -137,6 +134,9 @@ class PromoteCoinController extends ThinkController } //平台币修改 if ($tt == 1) { + if (empty(I('user_id'))) { + $this->error('请输入正确的玩家账号'); + } $res = D('User')->edit_user_balance_coin(I('user_id'), abs(I('num'))); } else { $promoteService = new PromoteService();