更改:头像返回绝对地址

This commit is contained in:
2023-11-14 10:56:44 +08:00
parent 0c553203c1
commit 7080b74ebe

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