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; }