当密码文件无法正常打开时,给予友好提示

This commit is contained in:
赵俊
2021-09-19 14:09:52 +08:00
parent aa3cde8f59
commit 187544fc06

View File

@@ -169,8 +169,10 @@ public class FileController {
FileItemDTO pwdFileItem = fileService.getFileItem(pwdFileFullPath);
expectedPasswordContent = HttpUtil.getTextContent(pwdFileItem.getUrl());
} catch (Exception e) {
throw new PasswordVerifyException("此文件夹加密文件夹, 但密码检查异常, 请联系管理员检查密码设置", e);
throw new PasswordVerifyException("此文件夹加密文件夹, 但密码检查异常, 请联系管理员检查密码设置", e);
}
} catch (Exception e) {
throw new PasswordVerifyException("此文件夹为加密文件夹, 但密码检查异常, 请联系管理员检查密码设置", e);
}
if (matchPassword(expectedPasswordContent, inputPassword)) {