|
...
|
...
|
@@ -70,6 +70,11 @@ class FileController |
|
|
|
if ($info === false) {
|
|
|
|
$this->response('指定文件不存在!', Code::USER_ERROR);
|
|
|
|
}
|
|
|
|
//获取cos链接
|
|
|
|
if($info['cos'] == 1){
|
|
|
|
$cos = new CosService();
|
|
|
|
return $cos->getImageUrl($info['path']);
|
|
|
|
}
|
|
|
|
$path = $this->config['root'].'/'.$info['path'];
|
|
|
|
if (!is_file($path)) {
|
|
|
|
$this->response('指定文件已被系统删除!', Code::USER_ERROR);
|
...
|
...
|
|