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