| 
					
				 | 
			
			
				@ -49,10 +49,7 @@ import org.springframework.security.oauth2.provider.error.WebResponseExceptionTr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.security.oauth2.provider.request.DefaultOAuth2RequestFactory; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.security.oauth2.provider.request.DefaultOAuth2RequestValidator; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.util.Assert; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.util.LinkedMultiValueMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.util.MultiValueMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.util.StringUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.util.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.web.client.RestTemplate; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.web.context.request.RequestContextHolder; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -772,14 +769,17 @@ public class WlyyLoginEndpoint extends AbstractEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info("authCode :"+authCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String base64 = URLDecoder.decode(authCode,"UTF-8"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info("base64 :"+base64); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String str = URLDecoder.decode(authCode,"UTF-8"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info("base64 :"+str); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String data = new String(Base64Utils.decode((str.getBytes()))); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //固定秘钥解密 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String key = "FEA5049E4CCD16A9"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String data = AES.decrypt(key,base64); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info("wjwLogin :"+data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String result = AES.decrypt(key,data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info("wjwLogin :"+result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            BasePatientDO patientDO = oauthWjwConfigService.savePatient(data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            BasePatientDO patientDO = oauthWjwConfigService.savePatient(result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(patientDO == null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                return ObjEnvelop.getError("授权登录失败!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -823,7 +823,7 @@ public class WlyyLoginEndpoint extends AbstractEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }catch (Exception e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.error(e); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return ObjEnvelop.getError("授权登录失败!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return ObjEnvelop.getError("登录失败!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 |