From 584837cb2816e39c7460ef9aed59809dd155844a Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 7 Jun 2018 17:17:19 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E6=9C=AC=E5=9C=B0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=E8=B7=AF=E5=BE=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/service/FileService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/service/FileService.php b/extend/service/FileService.php index 1705b6f2a..f3f4a20e1 100644 --- a/extend/service/FileService.php +++ b/extend/service/FileService.php @@ -156,7 +156,7 @@ class FileService */ public static function getBaseUriLocal() { - $appRoot = request()->root(); // 如果你想获取相对url地址,这里去掉参数 true + $appRoot = request()->root(true); // 如果你想获取相对url地址,这里去掉参数 true $uriRoot = preg_match('/\.php$/', $appRoot) ? dirname($appRoot) : $appRoot; return "{$uriRoot}/static/upload/"; }