|  |  | @ -19,16 +19,19 @@ public class RocketMQConsumerRegister extends MQAbstractRegister { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |     public void registerAllListeners(String env, MQConsumerProperties consumerProperties) { | 
			
		
	
		
			
				
					|  |  |  |         if (!EnvEnum.LOCAL.getCode().equals(env)) { | 
			
		
	
		
			
				
					|  |  |  |             // 客户初始化监听器注册
 | 
			
		
	
		
			
				
					|  |  |  |             register(consumerProperties, | 
			
		
	
		
			
				
					|  |  |  |                     ConsomerGroupConstants.INIT_CUSTOMER_ORG_ROLES_GROUP, | 
			
		
	
		
			
				
					|  |  |  |                     MessageModel.CLUSTERING, | 
			
		
	
		
			
				
					|  |  |  |                     TopicConstants.INIT_CUSTOMER, | 
			
		
	
		
			
				
					|  |  |  |                     "*", | 
			
		
	
		
			
				
					|  |  |  |                     new InitCustomerOrgRolesListener()); | 
			
		
	
		
			
				
					|  |  |  |         //判断逻辑,放到了了Pom.xml中,local不开启即可
 | 
			
		
	
		
			
				
					|  |  |  |         //if (!EnvEnum.LOCAL.getCode().equals(env)) {
 | 
			
		
	
		
			
				
					|  |  |  |             //...
 | 
			
		
	
		
			
				
					|  |  |  |         //}
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |             // ...其他监听器类似
 | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         // 客户初始化监听器注册
 | 
			
		
	
		
			
				
					|  |  |  |         register(consumerProperties, | 
			
		
	
		
			
				
					|  |  |  |                 ConsomerGroupConstants.INIT_CUSTOMER_ORG_ROLES_GROUP, | 
			
		
	
		
			
				
					|  |  |  |                 MessageModel.CLUSTERING, | 
			
		
	
		
			
				
					|  |  |  |                 TopicConstants.INIT_CUSTOMER, | 
			
		
	
		
			
				
					|  |  |  |                 "*", | 
			
		
	
		
			
				
					|  |  |  |                 new InitCustomerOrgRolesListener()); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         // ...其他监听器类似
 | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
	
		
			
				
					|  |  | 
 |