user list返回脱敏手机号

This commit is contained in:
xxqfamous 2023-06-01 18:33:29 +08:00
parent f19dfc9d08
commit 677f9c2f4e
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ json.array! users do |user|
json.login user.login
json.user_id user.id
json.mail user.mail
json.phone user.phone.present? ? "#{user.phone[0..2]}****#{user.phone[-4..-1]}" : ""
json.custom_department user.custom_department
json.image_url url_to_avatar(user)
json.profile_completed user.profile_completed