diff --git a/app/services/games_service.rb b/app/services/games_service.rb index eaf9b51f..e60ec82d 100644 --- a/app/services/games_service.rb +++ b/app/services/games_service.rb @@ -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}