From 69a0a5b72b8e413c9c2c1c4d3d858a2991a456af Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 3 Apr 2019 09:13:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=93=E5=87=BA=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/games_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}