fixed 竞赛日志详情

This commit is contained in:
xxq250 2025-10-15 15:23:01 +08:00
parent c323246471
commit 204acae752
1 changed files with 1 additions and 1 deletions

View File

@ -62,6 +62,7 @@ class UserAction < ApplicationRecord
when "DestroyUser" then "账号:#{user&.login}<br/>邮箱:#{user&.mail}<br/>手机号:#{user&.phone}<br/>昵称:#{user&.nickname}<br/>"
when "DestroyProject" then "项目名称:#{project&.name}<br/>项目标识:#{project&.identifier}<br/>"
when "DestroyOrganization" then "组织名称:#{organization&.nickname}<br/>组织标识:#{organization&.login}<br/>"
when "CompetitionInfoCreate", "CompetitionInfoUpdate", "CompetitionInfoUp", "CompetitionInfoDown" then "竞赛名称:#{competition_info&.title}<br/>竞赛标识:#{competition_info&.identifier}<br/>"
when 'Attachment'
issue = Issue.find_by_id(attachment.container_id)
if attachment.container_type == "Issue" && issue&.issue_classify == "issue"
@ -69,7 +70,6 @@ class UserAction < ApplicationRecord
else
return "上传附件地址:<a href=\"#{Rails.application.config_for(:configuration)['platform_url']}/attachments/#{attachment.uuid}\">#{attachment.title}</a>"
end
when "CompetitionInfoCreate", "CompetitionInfoUpdate", "CompetitionInfoUp", "CompetitionInfoDown" then "竞赛名称:#{competition_info&.title}<br/>竞赛标识:#{competition_info&.identifier}<br/>"
else "--"
end
end