mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-21 06:19:16 +08:00
[更新]修改文件服务获取本地上传地址
This commit is contained in:
parent
42573daa72
commit
44e9b33c10
@ -156,7 +156,7 @@ class FileService
|
||||
*/
|
||||
public static function getBaseUriLocal()
|
||||
{
|
||||
$appRoot = trim(request()->root(true),'\\/'); // 如果你想获取相对url地址,这里把掉参数 true
|
||||
$appRoot = request()->root(); // 如果你想获取相对url地址,这里去掉参数 true
|
||||
$uriRoot = preg_match('/\.php$/', $appRoot) ? dirname($appRoot) : $appRoot;
|
||||
return "{$uriRoot}/static/upload/";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user