|
|
@ -152,7 +152,7 @@ class GamesService
|
|
|
|
#actual_output = Base64.encode64(actual_output)
|
|
|
|
#actual_output = Base64.encode64(actual_output)
|
|
|
|
compile_success = (actual_output.blank? || actual_output.downcase.match(/error/).present?) ? 0 : 1
|
|
|
|
compile_success = (actual_output.blank? || actual_output.downcase.match(/error/).present?) ? 0 : 1
|
|
|
|
|
|
|
|
|
|
|
|
actual_output = compile_success == 0 ? "编译失败,请在测试结果中查看具体的错误信息" : compile_success
|
|
|
|
actual_output = (compile_success == 0 ? "编译失败,请在测试结果中查看具体的错误信息" : actual_output)
|
|
|
|
|
|
|
|
|
|
|
|
public_result = {:is_public => (test_set.is_public ? 1 : 0), :result => result,
|
|
|
|
public_result = {:is_public => (test_set.is_public ? 1 : 0), :result => result,
|
|
|
|
:actual_output => actual_output, :compile_success => compile_success}
|
|
|
|
:actual_output => actual_output, :compile_success => compile_success}
|
|
|
|