From 5caf75afb9e152c0b409cf93c843e4e955ef6319 Mon Sep 17 00:00:00 2001
From: chenxiaojun <956334972@qq.com>
Date: Sun, 17 Nov 2019 17:11:09 +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

---
 .../Admin/Controller/PromoteCoinController.class.php        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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();