diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 665eaa294..2ed82f1b5 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -5,7 +5,7 @@ class HomeController < ApplicationController images = PortalImage.where(status: true).order("position asc") @images_url = [] images.each do |image| - @images_url << {path: image.link, image_url: "/images/avatars/PortalImage/#{image.id}"} + @images_url << {path: image.link, image_url: Util::FileManage.disk_file_url('PortalImage', image.id)} end # 目录分级