Browse Source

更改:头像返回绝对地址

pull/347/head
yystopf 2 years ago
parent
commit
7080b74ebe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/api/v1/users/_simple_user.json.jbuilder

+ 1
- 1
app/views/api/v1/users/_simple_user.json.jbuilder View File

@@ -3,7 +3,7 @@ if user.present?
json.type user.type
json.name user.real_name
json.login user.login
json.image_url url_to_avatar(user)
json.image_url Rails.application.config_for(:configuration)['platform_url'] + "/" + url_to_avatar(user).to_s
else
json.nil!
end

Loading…
Cancel
Save