dev_forum
daiao 5 years ago
parent e3385daeba
commit b7b69e2d0e

@ -3,5 +3,5 @@ json.login user.login
json.name user.full_name json.name user.full_name
json.grade user.grade json.grade user.grade
# json.email user.mail # 邮箱原则上不暴露的,如果实在需要的话只能对某些具体的接口公开 # json.email user.mail # 邮箱原则上不暴露的,如果实在需要的话只能对某些具体的接口公开
json.image_url image_url(url_to_avatar(user)) json.image_url url_to_avatar(user)
json.school user.school_name json.school user.school_name

@ -1,7 +1,9 @@
json.username @user.full_name json.username @user.full_name
json.login @user.login json.login @user.login
json.user_id @user.id json.user_id @user.id
json.image_url url_to_avatar(@user) json.image_url image_url(url_to_avatar(@user))
json.image_path image_path(url_to_avatar(@user))
json.image_tag image_tag(url_to_avatar(@user))
json.admin @user.admin? json.admin @user.admin?
json.is_teacher @user.user_extension&.teacher? json.is_teacher @user.user_extension&.teacher?
json.tidding_count 0 json.tidding_count 0

Loading…
Cancel
Save