diff --git a/app/views/hack_user_lastest_codes/record_detail.json.jbuilder b/app/views/hack_user_lastest_codes/record_detail.json.jbuilder index 189b51c46..f6e4d5bd1 100644 --- a/app/views/hack_user_lastest_codes/record_detail.json.jbuilder +++ b/app/views/hack_user_lastest_codes/record_detail.json.jbuilder @@ -1,9 +1,8 @@ json.status 0 json.message "返回成功" json.data do - json.(@hack_user, :id, :status, :error_line, :expected_output, + json.(@hack_user, :id, :status, :error_line, :expected_output, :error_msg, :input, :output, :execute_time, :execute_memory, :created_at, :code) - json.error_msg regexp_msg(@hack_user.error_msg) json.language @hack_user.language json.name @hack_user.hack.name json.myproblem_identifier @my_hack.identifier diff --git a/app/views/hack_user_lastest_codes/result.json.jbuilder b/app/views/hack_user_lastest_codes/result.json.jbuilder index f55ca1d19..0ddd28103 100644 --- a/app/views/hack_user_lastest_codes/result.json.jbuilder +++ b/app/views/hack_user_lastest_codes/result.json.jbuilder @@ -3,7 +3,6 @@ json.message "评测完成" json.data do json.(@result, :id, :status, :error_line, :error_msg, :input, :output, :execute_time, :execute_memory) - json.error_msg regexp_msg(@result.error_msg) json.passed @my_hack.passed # 提交模式多了一个预计输出 if @mode == "submit"