Merge branch 'master' of 47.111.118.107:/srv/git/platform

master
ELF 5 years ago
commit 4bb79166d8

@ -1677,6 +1677,13 @@ class ApplyController extends BaseController
$save['ratio'] = $gameData['ratio'];
$save['money'] = $gameData['money'];
$gameSource = M('Game_source', 'tab_')->field('id,source_version')->where(['game_id' => $gameId])->find();
if (!file_exists(get_game_source_file_url($gameId)) || null == $gameSource) {
$save['enable_status'] = -1;
} else {
$save['enable_status'] = 2;
}
$res = M('Apply', 'tab_')->add($save);
if (!$res) {

Loading…
Cancel
Save