| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -211,7 +211,7 @@ public class ComponentVerifyTicketServiceImpl implements ComponentVerifyTicketSe | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                formDTO.setExpiresInTime(expiresInTime); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //先逻辑删,在插入
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                log.info(ThirdRunTimeInfoConstant.START_DELETE_COMPONENT_ACCESS_TOKEN); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                componentAccessTokenDao.updateOldComponentAccessToken(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                componentAccessTokenDao.deleteOldComponentAccessToken(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                componentAccessTokenDao.insertComponentAccessToken(formDTO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //存缓存
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                redisThird.setComponentAccessToken(componentAccessToken); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -348,14 +348,10 @@ public class ComponentVerifyTicketServiceImpl implements ComponentVerifyTicketSe | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    formDTO.setAuthAppid(authAppId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    formDTO.setClientType(clientType); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    AuthorizationInfoFormDTO authorizationInfo = new AuthorizationInfoFormDTO(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    BeanUtils.copyProperties(formDTO,authorizationInfo); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    authorizationInfo.setAuthorizerAppid(authAppId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    authorizationInfo.setClientType(clientType); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    authorizationInfo.setCustomerId(customerId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    authorizationInfo.setAuthorizerRefreshToken(authorizerRefreshToken); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    authorizationInfo.setAuthorizerAccessToken(authorizerAccessToken); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    authorizationInfo.setExpiresInTime(expiresInTime); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    //先逻辑删除,在插入
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    authorizationInfoDao.updateOldAuthorizerAccessToken(customerId, clientType); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    authorizationInfoDao.deleteOldAuthorizerAccessToken(customerId, clientType); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    authorizationInfoDao.insertAuthorizerAccessToken(formDTO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    //缓存 refreshAuthorizerAccessToken
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    redisThird.setAuthorizerRefreshToken(authorizationInfo); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |