From 24fe97186e030bf45552b2b8b6a5f0c36c59873b Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Sun, 27 Sep 2020 11:24:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/GameController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/Controller/GameController.class.php b/Application/Admin/Controller/GameController.class.php index dd76ed3a7..29c19144e 100644 --- a/Application/Admin/Controller/GameController.class.php +++ b/Application/Admin/Controller/GameController.class.php @@ -238,7 +238,7 @@ class GameController extends ThinkController $gameService->saveBaseGame($baseData); M('promote_company', 'tab_') - ->where('1=1') + ->where(['company_belong' => ['not in', [1, 2]]]) ->save(['game_ids' => ['exp', 'trim(BOTH "," FROM concat(game_ids, ",", ' . $res['relation_game_id'] . '))']]); $subSql = M('promote_company', 'tab_')->field('id')->where(['company_belong' => ['not in', [1, 2]]])->select(false);