From a79b0cab297578d4a3ed54a24f3d48b5b8244a43 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 29 May 2018 11:31:37 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=AD=A3=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= 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 988c3fd37..6d88946d4 100644 --- a/extend/service/FileService.php +++ b/extend/service/FileService.php @@ -156,7 +156,7 @@ class FileService */ public static function getBaseUriLocal() { - $appRoot = request()->root(true); // 如果你想获取相对url地址,这里改成 false + $appRoot = request()->root(true); // 如果你想获取相对url地址,这里把掉参数 true $uriRoot = preg_match('/\.php$/', $appRoot) ? dirname($appRoot) : $appRoot; return "{$uriRoot}/static/upload/"; }