feat:兼容开发
parent
7e9bec8a96
commit
807acc480a
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue