This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
操作记录记录显示调整,不存在用户仅显示id
pull/347/head
xxq250
1 year ago
parent
6924366e02
commit
c73e138ee7
1 changed files
with
2 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
app/models/user_action.rb
+ 2
- 1
app/models/user_action.rb
View File
@@ -44,7 +44,8 @@ class UserAction < ApplicationRecord
if user.present?
if user.present?
user&.login
user&.login
else
else
"不存用户:#{action_id}"
del_user = UserAction.find_by(action_type: "DestroyUser", action_id: self.user_id)
del_user.present? ? "已注销:#{del_user.user.login}" : "不存在用户:#{user_id}"
end
end
end
end
Write
Preview
Loading…
Cancel
Save