From cd5322407594e650c622240498f872fecae697b8 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 23 May 2018 16:12:10 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/service/FileService.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extend/service/FileService.php b/extend/service/FileService.php index 23bb6f77c..988c3fd37 100644 --- a/extend/service/FileService.php +++ b/extend/service/FileService.php @@ -69,8 +69,8 @@ class FileService /** * 获取文件当前URL地址 - * @param string $filename - * @param string|null $storage + * @param string $filename 文件HASH名称 + * @param string|null $storage 文件存储引擎 * @return bool|string * @throws OssException * @throws \think\Exception @@ -93,7 +93,7 @@ class FileService } /** - * 根据配置获取到七牛云文件上传目标地址 + * 根据配置获取到本地上传的目标地址 * @return string */ public static function getUploadLocalUrl() @@ -156,7 +156,7 @@ class FileService */ public static function getBaseUriLocal() { - $appRoot = request()->root(true); + $appRoot = request()->root(true); // 如果你想获取相对url地址,这里改成 false $uriRoot = preg_match('/\.php$/', $appRoot) ? dirname($appRoot) : $appRoot; return "{$uriRoot}/static/upload/"; }