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