抄袭者不存在的情况

dev_hjm
daiao 6 years ago
parent 3df693cdf6
commit 3d019e0727

@ -1478,8 +1478,9 @@ class HomeworkCommonsController < ApplicationController
code_list << {path: path, origin_content: info.origin_content, target_content: info.target_content}
end
end
{code_rate: code_rate, copy_user_id: copy_user_id, end_time: end_time, final_score: final_score,
all_score: all_score, copy_end_time: copy_end_time, copy_username: copy_username,
# TODO: 这里本来应该前端做的,但是现在页面已经刷不开了。
{code_rate: code_rate, copy_user_id: copy_user.try(:id), end_time: end_time, final_score: final_score,
all_score: all_score, copy_end_time: copy_end_time, copy_username: copy_user.try(:full_name),
username: game.user.full_name, code_list: code_list, subject: challenge.subject, position: challenge.position,
id: challenge.id}
end

Loading…
Cancel
Save