From a48f0214c7ccb10b9e9f65d2554287b96b91b903 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Fri, 2 Apr 2021 17:23:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=92=E5=B1=9E=E6=B8=B8=E6=88=8F=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/GameController.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Application/Admin/Controller/GameController.class.php b/Application/Admin/Controller/GameController.class.php index 9ac6db3fb..b4a37a725 100644 --- a/Application/Admin/Controller/GameController.class.php +++ b/Application/Admin/Controller/GameController.class.php @@ -228,6 +228,11 @@ class GameController extends ThinkController ->field("real_name") ->where(['uid' => I('post.game_belong_id')]) ->find()['real_name']; + + if(!$realname) { + $realname = ''; + } + $_POST['game_belong_name'] =$realname; $game = D(self::model_name);//M('$this->$model_name','tab_'); @@ -427,6 +432,11 @@ ADD COLUMN `kefu_qq` varchar(255) NULL DEFAULT '' COMMENT 'kefu_qq_type为2 时 ->field("real_name") ->where(['uid' => I('post.game_belong_id')]) ->find()['real_name']; + + if(!$realname) { + $realname = ''; + } + $_POST['game_belong_name'] =$realname;