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