generated from root/miduo_server
天眼日志
parent
bc2920691e
commit
1314f17860
|
@ -191,6 +191,7 @@ public class GameTitleController {
|
|||
try {
|
||||
HashMap<String, String> parameterMap = JsonUtil.getInstence().getParameterMap(request);
|
||||
String jsonString = JSON.toJSONString(parameterMap);
|
||||
LOGGER.info("天眼封禁json=>{}",jsonString);
|
||||
JSONObject jsonObject = JSON.parseObject(jsonString);
|
||||
BaseHandler handler = ManagerManager.getInstance().getBaseHandler("gm");
|
||||
if(handler.skyEyeExecute(jsonObject,session,map)){
|
||||
|
@ -224,7 +225,7 @@ public class GameTitleController {
|
|||
BigInteger bigInt = new BigInteger(1, md5sum);
|
||||
String newsign = String.format("%032X", bigInt).toLowerCase();
|
||||
map.put("message","sign:"+sign+" newSign:"+newsign);
|
||||
LOGGER.info("message,sign=>{},new sign=>{}",sign,newsign);
|
||||
LOGGER.info("天眼message,sign=>{},new sign=>{}",sign,newsign);
|
||||
return newsign.equalsIgnoreCase(sign); // MD5前面会补零
|
||||
|
||||
} catch (NoSuchAlgorithmException | UnsupportedEncodingException e)
|
||||
|
|
|
@ -162,22 +162,23 @@ public class GMHandler extends BaseHandler {
|
|||
String rpcString = RedisUtil.getInstence().getObject(RedisUserKey.LOGIC_SERVER_INFO, String.valueOf(coreServerList.getServer_id()), String.class, -1);
|
||||
if (null == rpcString) {
|
||||
map.put("message","Exception send err rpcString dsid="+coreUserInfo.getServerid()+",uid="+userId);
|
||||
LOGGER.error("Exception send err rpcString dsid=>{},uid=>{},cmd=>{}", coreUserInfo.getServerid(), userId, cmd);
|
||||
LOGGER.error("天眼Exception send err rpcString dsid=>{},uid=>{},cmd=>{}", coreUserInfo.getServerid(), userId, cmd);
|
||||
return false;
|
||||
}
|
||||
String thriftIp = rpcString.split(":")[0];
|
||||
String thriftPort = rpcString.split(":")[1];
|
||||
if (thriftIp == null || thriftIp.isEmpty() || null == thriftPort || thriftPort.isEmpty()) {
|
||||
map.put("message","thriftIp == null || thriftIp.isEmpty() || null == thriftPort || thriftPort.isEmpty()");
|
||||
LOGGER.error("天眼thriftIp == null || thriftIp.isEmpty() || null == thriftPort || thriftPort.isEmpty()");
|
||||
return false;
|
||||
}
|
||||
Result result = RPCClient.gmSend(cmd, thriftIp, thriftPort);
|
||||
// 异常或者错误
|
||||
if (result.getResultCode() != 0) {
|
||||
LOGGER.error("Exception send err dsid=>{},uid=>{},cmd=>{}", coreUserInfo.getServerid(), userId, cmd);
|
||||
LOGGER.error("天眼Exception send err dsid=>{},uid=>{},cmd=>{}", coreUserInfo.getServerid(), userId, cmd);
|
||||
}else {
|
||||
// 封禁入库
|
||||
LOGGER.info("封禁入库,serverid=>{},uid=>{}", zoneId, userId);
|
||||
LOGGER.info("天眼封禁入库,serverid=>{},uid=>{}", zoneId, userId);
|
||||
updateUserBanner(coreUserInfo,session,jsonBan);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue