|
|
@ -388,7 +388,7 @@ class GamesService
|
|
|
|
if content != last_content && code_file.blank?
|
|
|
|
if content != last_content && code_file.blank?
|
|
|
|
raise("update file failed")
|
|
|
|
raise("update file failed")
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return {:success => "success", :resubmit => resubmit ,:content_modified => content_modified, sec_key: record.identifier}
|
|
|
|
return {:success => "success", :resubmit => resubmit ,:content_modified => content_modified, sec_key: record.try(:identifier)}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
rescue Exception => e
|
|
|
|
rescue Exception => e
|
|
|
|