密码错误提示信息优化

This commit is contained in:
zhaojun1998
2021-02-08 17:46:29 +08:00
parent e920ab0ec0
commit 6a5fe15121

View File

@@ -192,10 +192,10 @@ public class FileController {
break;
}
if (inputPassword != null && !"".equals(inputPassword)) {
return VerifyResult.fail("密码错误.", ResultBean.INVALID_PASSWORD);
if (StrUtil.isEmpty(inputPassword)) {
return VerifyResult.fail("此文件夹需要密码.", ResultBean.REQUIRED_PASSWORD);
}
return VerifyResult.fail("此文件夹需要密码.", ResultBean.INVALID_PASSWORD);
return VerifyResult.fail("密码错误.", ResultBean.INVALID_PASSWORD);
}
}