|
|
@@ -195,6 +195,7 @@ public class CommonController extends BaseController {
|
|
|
*/
|
|
|
@GetMapping("common/download")
|
|
|
public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request) {
|
|
|
+
|
|
|
try {
|
|
|
if (!FileUtils.checkAllowDownload(fileName)) {
|
|
|
throw new Exception(StrUtil.format("文件名称({})非法,不允许下载。 ", fileName));
|