作者 朱兆平

用户密码为空判断

... ... @@ -33,9 +33,10 @@ public class UserPasswordMd5AOP {
Object[] args = joinPoint.getArgs();
if (args != null && args.length > 0 && args[0].getClass() == USERS.class) {
USERS user = (USERS)args[0];
user.setPassword(DigestUtils.md5Hex(user.getPassword()));
args[0] = user;
if (null!=user.getPassword() && !user.getPassword().isEmpty()){
user.setPassword(DigestUtils.md5Hex(user.getPassword()));
args[0] = user;
}
}
Object retmsg=null;
try {
... ...