输出字符串问题

dev_local
huang 6 years ago
parent 30f7a4d2bd
commit 69a0a5b72b

@ -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
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,
:actual_output => actual_output, :compile_success => compile_success}

Loading…
Cancel
Save