Browse Source

操作记录记录用户信息

pull/347/head
xxq250 1 year ago
parent
commit
80828d85d7
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      app/models/user_action.rb

+ 6
- 4
app/models/user_action.rb View File

@@ -76,10 +76,12 @@ class UserAction < ApplicationRecord

private
def add_user_info
if user.present?
self.login = user.login
self.email = user.mail
self.phone = user.phone
if self.login.blank?
if user.present?
self.login = user.login
self.email = user.mail
self.phone = user.phone
end
end
end
end

Loading…
Cancel
Save