From 807acc480ab142459d0345795fc0a9e3cc474538 Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Tue, 1 Mar 2022 21:46:04 +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 | 3 +-- app/Controller/Api/V1/Talk/RecordsController.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Controller/Api/V1/Article/AnnexController.php b/app/Controller/Api/V1/Article/AnnexController.php index 7deeb94..1065886 100644 --- a/app/Controller/Api/V1/Article/AnnexController.php +++ b/app/Controller/Api/V1/Article/AnnexController.php @@ -186,8 +186,7 @@ class AnnexController extends CController case FileDriveConstant::Local: return $response->download($this->getFilePath($info->path), $info->original_name); case FileDriveConstant::Cos: - // 后期添加 - break; + return $this->response->fail('文件驱动不存在!'); default: break; } diff --git a/app/Controller/Api/V1/Talk/RecordsController.php b/app/Controller/Api/V1/Talk/RecordsController.php index 075141b..1523b4e 100644 --- a/app/Controller/Api/V1/Talk/RecordsController.php +++ b/app/Controller/Api/V1/Talk/RecordsController.php @@ -190,8 +190,7 @@ class RecordsController extends CController return $response->download($this->getFilePath($info->path), $info->original_name); case FileDriveConstant::Cos: - // 后期添加 - break; + return $this->response->fail('文件驱动不存在!'); default: break; }