正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -33,9 +33,10 @@ public class UserPasswordMd5AOP { | @@ -33,9 +33,10 @@ public class UserPasswordMd5AOP { | ||
| 33 | Object[] args = joinPoint.getArgs(); | 33 | Object[] args = joinPoint.getArgs(); |
| 34 | if (args != null && args.length > 0 && args[0].getClass() == USERS.class) { | 34 | if (args != null && args.length > 0 && args[0].getClass() == USERS.class) { |
| 35 | USERS user = (USERS)args[0]; | 35 | USERS user = (USERS)args[0]; |
| 36 | + if (null!=user.getPassword() && !user.getPassword().isEmpty()){ | ||
| 36 | user.setPassword(DigestUtils.md5Hex(user.getPassword())); | 37 | user.setPassword(DigestUtils.md5Hex(user.getPassword())); |
| 37 | args[0] = user; | 38 | args[0] = user; |
| 38 | - | 39 | + } |
| 39 | } | 40 | } |
| 40 | Object retmsg=null; | 41 | Object retmsg=null; |
| 41 | try { | 42 | try { |
-
请 注册 或 登录 后发表评论