diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index ae33ccb07..32867090c 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -103,11 +103,10 @@ class StudentWorkController < ApplicationController if result["status"].to_i != -2 #result["results"].first['output'] = result["results"].first['output'].gsub(" ","□") #result["results"].first['result'] = result["results"].first['result'].gsub(" ","□") + space_replace_1(result["results"].first['output']) + space_replace_1(result["results"].first['result']) end - space_replace_1(result["results"].first['output']) - space_replace_1(result["results"].first['result']) - logger.debug result #-1 默认值 0全部正确并结束 2 超时 -2 编译错误 diff --git a/app/views/users/new_user_commit_homework.html.erb b/app/views/users/new_user_commit_homework.html.erb index e33362a0a..f8635194d 100644 --- a/app/views/users/new_user_commit_homework.html.erb +++ b/app/views/users/new_user_commit_homework.html.erb @@ -133,7 +133,6 @@ <% else %>