更新->下级添加游戏bug修复

master
chenxiaojun 5 years ago
parent fe331aebad
commit b5ed51bed1

@ -1578,6 +1578,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