From e942f378c6dbee182b5b1b485686f4635955e425 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Wed, 13 Nov 2019 16:41:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/AutoPackController.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/AutoPackController.class.php b/Application/Admin/Controller/AutoPackController.class.php index fc3c4d04f..cba755d66 100644 --- a/Application/Admin/Controller/AutoPackController.class.php +++ b/Application/Admin/Controller/AutoPackController.class.php @@ -296,7 +296,7 @@ class AutoPackController extends Think private function channel() { $map = []; $map['status'] = 1; - $map['enable_status'] = ['in', '0,2,3']; + $map['enable_status'] = ['in', '0,2']; $applys = M('apply', 'tab_')->field('id,game_id,game_name,promote_id,promote_account,sdk_version') ->where($map) @@ -309,6 +309,9 @@ class AutoPackController extends Think } $applyIds = array_column($applys, 'id'); + + M('apply', 'tab_')->where(['id' => $applyIds])->save(['enable_status' => 3]); + $gameIds = array_unique(array_column($applys, 'game_id')); $games = M('game', 'tab_')->field(['id', 'game_appid', 'game_name', 'icon', 'sdk_version'])->where(['id' => ['in', $gameIds]])->select(); $games = index_by_column('id', $games);