dev_local
huang 6 years ago
parent e8a8df58ab
commit 0306071ed0

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

Loading…
Cancel
Save