优化第三方存储链接生成,更符合接口规范;优化上传配置文件;

This commit is contained in:
2022-07-12 09:37:14 +08:00
parent 7659dedf08
commit 713f177b5e
8 changed files with 50 additions and 51 deletions

View File

@@ -1,6 +1,7 @@
<?php
use think\facade\Env;
use think\facade\Request;
return [
// 默认磁盘
@@ -17,7 +18,7 @@ return [
// 磁盘路径
'root' => app()->getRootPath() . 'public/storage',
// 磁盘路径对应的外部URL路径
'url' => '/storage',
'url' => Request::domain() . '/storage',
// 可见性
'visibility' => 'public',
],