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

master
chenxiaojun 5 years ago
parent 24b0649615
commit 91d5166af3

@ -1548,6 +1548,13 @@ class ApplyController extends BaseController
$save['ratio'] = $gameData['ratio']; $save['ratio'] = $gameData['ratio'];
$save['money'] = $gameData['money']; $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); $res = M('Apply', 'tab_')->add($save);
if (!$res) { if (!$res) {

Loading…
Cancel
Save