Explorar o código

场景查看权限校验

dengsixing hai 1 ano
pai
achega
866d5d2fd3

+ 2 - 2
src/main/java/com/fdkankan/scene/Interceptor/CheckViewBizAuthAspect.java

@@ -189,9 +189,9 @@ public class CheckViewBizAuthAspect {
 						throw new BusinessException(ErrorCode.PASSWORD_ERROR);
 					}
 					//模拟前端密码加密规则生成前端密码
-					password = SecurityUtil.MD52(Base64Converter.decode(password));
+					String passwordEncode = SecurityUtil.MD52(Base64Converter.decode(password));
 					//数据库密码比对
-					if(!password.equals(jyUser.getRyPassword())){
+					if(!passwordEncode.equals(jyUser.getRyPassword())){
 						throw new BusinessException(ErrorCode.PASSWORD_ERROR);
 					}
 					headers.put("userName", userName);