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
操作记录记录用户信息
pull/347/head
xxq250
1 year ago
parent
19cf675f2e
commit
80828d85d7
1 changed files
with
6 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save