generated from root/miduo_server
封禁区服id
parent
4aa71eb9f6
commit
ca9d657e14
|
@ -144,15 +144,7 @@ public class GMHandler extends BaseHandler {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
private boolean oneUserBanner(CUserInfo coreUserInfo, int serverId, JSONObject json, int type, HttpSession session) throws Exception {
|
private boolean oneUserBanner(CUserInfo coreUserInfo, int serverId, JSONObject json, int type, HttpSession session) throws Exception {
|
||||||
ServerInfo coreServerList = serverListDao.getServerInfo(String.valueOf(coreUserInfo.getServerid()));
|
int hefuServerId = HeFuManager.getHefuServerId(serverId);
|
||||||
if (null == coreServerList) {
|
|
||||||
LOGGER.error("服务器列表为空,serverId:{}", coreUserInfo.getServerid());
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!coreServerList.getServer_id().equals(String.valueOf(serverId))) {
|
|
||||||
LOGGER.error("db库里面的服务器id与传参不一致, dbServerId:{},valueServerId:{}", coreServerList.getServer_id(),serverId);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
// 获取拼接参数
|
// 获取拼接参数
|
||||||
String cmd = getCmd(json, coreUserInfo, type);
|
String cmd = getCmd(json, coreUserInfo, type);
|
||||||
if ("".equals(cmd) || cmd == null){
|
if ("".equals(cmd) || cmd == null){
|
||||||
|
@ -160,7 +152,7 @@ public class GMHandler extends BaseHandler {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
String rpcString = RedisUtil.getInstence().getObject(RedisUserKey.LOGIC_SERVER_INFO, String.valueOf(coreServerList.getServer_id()), String.class, -1);
|
String rpcString = RedisUtil.getInstence().getObject(RedisUserKey.LOGIC_SERVER_INFO, String.valueOf(hefuServerId), String.class, -1);
|
||||||
if (null == rpcString) {
|
if (null == rpcString) {
|
||||||
LOGGER.error("获取rpc参数报错:serverId:{}", coreUserInfo.getServerid());
|
LOGGER.error("获取rpc参数报错:serverId:{}", coreUserInfo.getServerid());
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue