操作记录记录用户信息

This commit is contained in:
xxq250 2024-09-27 10:47:16 +08:00
parent 19cf675f2e
commit 80828d85d7
1 changed files with 6 additions and 4 deletions

View File

@ -76,6 +76,7 @@ class UserAction < ApplicationRecord
private
def add_user_info
if self.login.blank?
if user.present?
self.login = user.login
self.email = user.mail
@ -83,3 +84,4 @@ class UserAction < ApplicationRecord
end
end
end
end