1. 修改密码新增运控系统配置
							parent
							
								
									61e35acc10
								
							
						
					
					
						commit
						6e24e8e06c
					
				| 
						 | 
				
			
			@ -667,6 +667,8 @@ public class UserServiceImpl implements UserService {
 | 
			
		|||
        //1 需要优先调用运控系统修改密码接口,修改完成才能同步本端数据库
 | 
			
		||||
        // 根据userId获取运控系统用户信息
 | 
			
		||||
        log.info("查询当前用户信息,userId: " + id);
 | 
			
		||||
        User user = userRepository.query(id);
 | 
			
		||||
        log.info("查询当前用户信息,单点登录userId: " + user.getUserId());
 | 
			
		||||
        JSONObject params = new JSONObject();
 | 
			
		||||
        Encryptor encryptor = new AESEncryptor();
 | 
			
		||||
        // 对原密码解密,并校验。
 | 
			
		||||
| 
						 | 
				
			
			@ -676,7 +678,7 @@ public class UserServiceImpl implements UserService {
 | 
			
		|||
        String encryptPassword = MessageDigestUtils.encrypt(password, MessageDigestUtils.SHA_256);
 | 
			
		||||
        log.info("查询当前用户信息,password: " + encryptoldPassword);
 | 
			
		||||
        log.info("查询当前用户信息,newPassword: " + encryptPassword);
 | 
			
		||||
        params.put("userId", String.valueOf(id));
 | 
			
		||||
        params.put("userId", user.getUserId());
 | 
			
		||||
        params.put("oldPwd", encryptoldPassword);
 | 
			
		||||
        params.put("newPwd", encryptPassword);
 | 
			
		||||
        //请求运控修改密码机接口
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue