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;