|  | @@ -58,6 +58,9 @@ public class GameUserRoleServiceImpl extends ServiceImpl<GameUserRoleMapper, Gam
 | 
											
												
													
														|  |      @Autowired
 |  |      @Autowired
 | 
											
												
													
														|  |      private IDistributedLockComponent distributedLockComponent;
 |  |      private IDistributedLockComponent distributedLockComponent;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    @Value("${server.domain}")
 | 
											
												
													
														|  | 
 |  | +    private String serverUrl;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      @Value("${spring.kafka.game-sdk.gameRoleActiveTopic}")
 |  |      @Value("${spring.kafka.game-sdk.gameRoleActiveTopic}")
 | 
											
												
													
														|  |      private String gameRoleActiveTopic;
 |  |      private String gameRoleActiveTopic;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -243,6 +246,10 @@ public class GameUserRoleServiceImpl extends ServiceImpl<GameUserRoleMapper, Gam
 | 
											
												
													
														|  |      public boolean gameRoleActiveCall(UserData userData, GameRoleActiveCallParam param) {
 |  |      public boolean gameRoleActiveCall(UserData userData, GameRoleActiveCallParam param) {
 | 
											
												
													
														|  |          log.error("接收到前端用户角色活跃上报, userId : {}, gameId : {}, serverId : {}, roleId : {}, roleLevel : {}",
 |  |          log.error("接收到前端用户角色活跃上报, userId : {}, gameId : {}, serverId : {}, roleId : {}, roleLevel : {}",
 | 
											
												
													
														|  |                  userData.getUserId(), userData.getGameId(), param.getServerId(), param.getRoleId(), param.getRoleLevel());
 |  |                  userData.getUserId(), userData.getGameId(), param.getServerId(), param.getRoleId(), param.getRoleLevel());
 | 
											
												
													
														|  | 
 |  | +        if (this.serverUrl.contains("test")) {
 | 
											
												
													
														|  | 
 |  | +            log.error("测试环境连接不上 Kafka, 不执行发送到 Kafka 的逻辑!");
 | 
											
												
													
														|  | 
 |  | +            return Boolean.FALSE;
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |          Map<String, Object> activeParamMap = new HashMap<>(6);
 |  |          Map<String, Object> activeParamMap = new HashMap<>(6);
 | 
											
												
													
														|  |          activeParamMap.put("userId", userData.getUserId());
 |  |          activeParamMap.put("userId", userData.getUserId());
 | 
											
												
													
														|  |          activeParamMap.put("gameId", userData.getGameId());
 |  |          activeParamMap.put("gameId", userData.getGameId());
 |