dev_static
daiao 5 years ago
parent 8fa0d0eb7e
commit e884c200eb

@ -3,6 +3,7 @@ json.message "评测完成"
json.data do
json.(@result, :id, :status, :error_line, :error_msg,
:input, :output, :execute_time, :execute_memory)
json.passed @my_hack.passed
# 提交模式多了一个预计输出
if @mode == "submit"
json.expected_output @result.expected_output

@ -8,6 +8,7 @@ json.hack do
json.submit_count @hack.submit_num
json.notes @my_hack.notes
json.modify_code @modify
json.passed @my_hack.passed
json.comments_count @hack.discusses.count
json.user_praise @hack.praise_treads.select{|pt| pt.user_id == current_user.id}.length > 0
end

Loading…
Cancel
Save