合服测试2
parent
e105b58919
commit
0e1e5d22c2
|
@ -1777,6 +1777,17 @@ public class PlayerLogic {
|
||||||
if (rpcString == null) {
|
if (rpcString == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
// 合服
|
||||||
|
String localRpc = RedisUtil.getInstence().getObject(RedisKey.LOGIC_SERVER_INFO, String.valueOf(GameApplication.serverId), String.class, -1);
|
||||||
|
if (localRpc != null && localRpc.equals(rpcString)) {
|
||||||
|
try {
|
||||||
|
return UserManager.getUser(uid, true);
|
||||||
|
} catch (Exception e) {
|
||||||
|
LOGGER.info("getUserByRpc Exception uid={} e={}", uid, e);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
String[] split = rpcString.split(":");
|
String[] split = rpcString.split(":");
|
||||||
if (split.length < 4) {
|
if (split.length < 4) {
|
||||||
LOGGER.error("获取玩家rpc地址,长度错误,rpc:{},玩家id:{},服务器id:{}", rpcString, uid, serverId);
|
LOGGER.error("获取玩家rpc地址,长度错误,rpc:{},玩家id:{},服务器id:{}", rpcString, uid, serverId);
|
||||||
|
|
Loading…
Reference in New Issue