From bb90fe012286a80e5d03fb3c09dbbd09bceef9b5 Mon Sep 17 00:00:00 2001
From: p31729568 <winse.wang@foxmail.com>
Date: Tue, 8 Oct 2019 10:53:04 +0800
Subject: [PATCH] fix home index banner image

---
 app/controllers/home_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 
     # 目录分级