feat:兼容开发

main
gzydong 2022-01-17 21:38:26 +08:00
parent 79cb768743
commit bd308ed7f8
1 changed files with 1 additions and 1 deletions

View File

@ -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('文件不存在或没有下载权限!');