From 204acae752f02c88fd48bc150d274fe6c2ec8585 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 15 Oct 2025 15:23:01 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E7=AB=9E=E8=B5=9B=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/user_action.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user_action.rb b/app/models/user_action.rb index 0da9f25aa..3b226b7e5 100644 --- a/app/models/user_action.rb +++ b/app/models/user_action.rb @@ -62,6 +62,7 @@ class UserAction < ApplicationRecord when "DestroyUser" then "账号:#{user&.login}
邮箱:#{user&.mail}
手机号:#{user&.phone}
昵称:#{user&.nickname}
" when "DestroyProject" then "项目名称:#{project&.name}
项目标识:#{project&.identifier}
" when "DestroyOrganization" then "组织名称:#{organization&.nickname}
组织标识:#{organization&.login}
" + when "CompetitionInfoCreate", "CompetitionInfoUpdate", "CompetitionInfoUp", "CompetitionInfoDown" then "竞赛名称:#{competition_info&.title}
竞赛标识:#{competition_info&.identifier}
" 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 "上传附件地址:#{attachment.title}" end - when "CompetitionInfoCreate", "CompetitionInfoUpdate", "CompetitionInfoUp", "CompetitionInfoDown" then "竞赛名称:#{competition_info&.title}
竞赛标识:#{competition_info&.identifier}
" else "--" end end