Browse Source

FIX 解决获取平台base url导致的https的问题

tags/v3.1.5
jasder 5 years ago
parent
commit
539b832af6
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      app/controllers/application_controller.rb
  2. +1
    -0
      config/configuration.yml.example

+ 1
- 1
app/controllers/application_controller.rb View File

@@ -771,7 +771,7 @@ class ApplicationController < ActionController::Base
end

def base_url
request.base_url
Rails.application.config_for(:configuration)['platform_url'] || request.base_url
end

def convert_image!


+ 1
- 0
config/configuration.yml.example View File

@@ -1,6 +1,7 @@
default: &default
# 用户登入的时候设置/登出的时候清空
autologin_cookie_name: 'autologin_trustie'
platform_url: 'http://localhost:3000'


#附件上传路径


Loading…
Cancel
Save