From bd308ed7f8f2c4476b87931b10a7ebc26dce7b3f Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Mon, 17 Jan 2022 21:38:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=85=BC=E5=AE=B9=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/Api/V1/Article/AnnexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controller/Api/V1/Article/AnnexController.php b/app/Controller/Api/V1/Article/AnnexController.php index a47ffe0..e364429 100644 --- a/app/Controller/Api/V1/Article/AnnexController.php +++ b/app/Controller/Api/V1/Article/AnnexController.php @@ -172,7 +172,7 @@ class AnnexController extends CController ]); /** @var ArticleAnnex $info */ - $info = ArticleAnnex::select(['path', 'original_name'])->where('id', $params['annex_id'])->where('user_id', $this->uid())->first(); + $info = ArticleAnnex::select(['path', 'original_name', 'drive'])->where('id', $params['annex_id'])->where('user_id', $this->uid())->first(); if (!$info || !$filesystem->has($info->path)) { return $this->response->fail('文件不存在或没有下载权限!');