1、http改为https,样式崩了?
App->providers->AppserverProvider
public function register() { $this->app['request']->server->set('HTTPS',true); }
2、图片服务器地址没改+编辑器?
在安全的加密网页中载入混合(不安全的)显示内容“http://xxx”
Imgserver和config.json都得改
3、图片服务器,建立,项目文件夹?
改过后,线上已上传的图片还得重传,图片服务器也没有项目文件夹?
Upload-files加一个'project_name' =>'yi',(必须要config:cache,修改才会生效)
helper里加,$str_folder = config('project_name').'/'.config('upload-files.storage.' . $str_sign);
注意:
Config文件夹里的文件修改后都要清
添加过了之后一定要记得config:cache,上线后也要清
4、图片服务器报错301 Moved Permanently?
永久重定向问题,说明请求的资源已经被移动到了由Location头部指定的url上,是固定的不会再改变
imgserver里的地址要加,https://
'image_url' => 'https://img.xianshangdizhi.cn/',