get_user_info加平台身份参数

dev_forum
cxt 6 years ago
parent e25427ff02
commit 7369240c2b

@ -4,6 +4,7 @@ json.user_id @user.id
json.image_url url_to_avatar(@user) json.image_url 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.user_identity @user.identity
json.tidding_count 0 json.tidding_count 0
json.user_phone_binded @user.phone.present? json.user_phone_binded @user.phone.present?
if @course if @course

Loading…
Cancel
Save