|
|
|
@@ -147,6 +147,15 @@ module ApplicationHelper |
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def url_to_avatar_with_platform_url(source)
|
|
|
|
platform_url = Rails.application.config_for(:configuration)['platform_url']
|
|
|
|
if platform_url
|
|
|
|
return Rails.application.config_for(:configuration)['platform_url'] + "/" + url_to_avatar(source).to_s
|
|
|
|
else
|
|
|
|
return url_to_avatar(source).to_s
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# 主页banner图
|
|
|
|
def banner_img(source_type)
|
|
|
|
if File.exist?(disk_filename(source_type, "banner"))
|
|
|
|
|