修复: 手机号默认不传

This commit is contained in:
yystopf 2022-08-17 15:28:58 +08:00
parent 217ab920a9
commit a37d7b9840
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class TraceUser < ApplicationRecord
self.username = user.login
self.password = SecureRandom.hex
self.unit = user.custom_department.blank? ? 'GitLink' : user.custom_department
self.telnumber = user.phone.blank? ? '13800000000' : user.phone
self.telnumber = user.phone
self.email = user.mail
self.name = user.nickname.blank? ? user.login : user.nickname