|
|
@ -325,6 +325,7 @@ class ApplicationController < ActionController::Base
|
|
|
|
unless file_content.present?
|
|
|
|
unless file_content.present?
|
|
|
|
raise("获取文件代码异常")
|
|
|
|
raise("获取文件代码异常")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
console.info("#######game_id:#{game_id}, file_content:#{file_content}")
|
|
|
|
game_code = GameCode.where(:game_id => game_id, :path => path).first
|
|
|
|
game_code = GameCode.where(:game_id => game_id, :path => path).first
|
|
|
|
if game_code.nil?
|
|
|
|
if game_code.nil?
|
|
|
|
GameCode.create!(:game_id => game_id, :new_code => file_content, :path => path)
|
|
|
|
GameCode.create!(:game_id => game_id, :new_code => file_content, :path => path)
|
|
|
|