From 2d4fb385cfd71eecd3db52208ab099aa679339ad Mon Sep 17 00:00:00 2001 From: p31729568 Date: Tue, 15 Oct 2019 09:12:59 +0800 Subject: [PATCH] laboratory setting --- app/libs/wechat/{app.rb => weapp.rb} | 0 app/models/laboratory_setting.rb | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename app/libs/wechat/{app.rb => weapp.rb} (100%) diff --git a/app/libs/wechat/app.rb b/app/libs/wechat/weapp.rb similarity index 100% rename from app/libs/wechat/app.rb rename to app/libs/wechat/weapp.rb diff --git a/app/models/laboratory_setting.rb b/app/models/laboratory_setting.rb index 32848dca2..dc7679514 100644 --- a/app/models/laboratory_setting.rb +++ b/app/models/laboratory_setting.rb @@ -34,7 +34,7 @@ class LaboratorySetting < ApplicationRecord def logo_url(type) return nil unless Util::FileManage.exists?(self, type) - Util::FileManage.source_disk_file_url(self, type) + Util::FileManage.source_disk_file_url(self, type)[1..-1] # 前端不兼容带 / 的 end def self.default_config