feat:兼容开发
parent
7e9bec8a96
commit
807acc480a
|
@ -186,8 +186,7 @@ class AnnexController extends CController
|
||||||
case FileDriveConstant::Local:
|
case FileDriveConstant::Local:
|
||||||
return $response->download($this->getFilePath($info->path), $info->original_name);
|
return $response->download($this->getFilePath($info->path), $info->original_name);
|
||||||
case FileDriveConstant::Cos:
|
case FileDriveConstant::Cos:
|
||||||
// 后期添加
|
return $this->response->fail('文件驱动不存在!');
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,8 +190,7 @@ class RecordsController extends CController
|
||||||
|
|
||||||
return $response->download($this->getFilePath($info->path), $info->original_name);
|
return $response->download($this->getFilePath($info->path), $info->original_name);
|
||||||
case FileDriveConstant::Cos:
|
case FileDriveConstant::Cos:
|
||||||
// 后期添加
|
return $this->response->fail('文件驱动不存在!');
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue