master_ob2
parent
c8a035fcdf
commit
1106721a87
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"version":"6",
|
"version":"7",
|
||||||
"classes":[
|
"classes":[
|
||||||
{"name":"ItemUtil.class","fullName":"com.ljsd.jieling.util.ItemUtil"}
|
{"name":"ItemUtil.class","fullName":"com.ljsd.jieling.util.ItemUtil"},
|
||||||
|
{"name":"GetPlayerInfoHandler.class","fullName":"com.ljsd.jieling.handler.GetPlayerInfoHandler"}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -256,7 +256,7 @@ public class GetPlayerInfoHandler extends BaseHandler{
|
||||||
ReportUtil.onReportEvent(user, ReportEventEnum.APP_LOGIN.getType());
|
ReportUtil.onReportEvent(user, ReportEventEnum.APP_LOGIN.getType());
|
||||||
CrossServiceLogic.getInstance().saveBasicPlayerToRedis(user);//登陆更新数据
|
CrossServiceLogic.getInstance().saveBasicPlayerToRedis(user);//登陆更新数据
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
LOGGER.error("获取玩家信息报错:{}",e.getMessage(),e);
|
||||||
}
|
}
|
||||||
//道具异常检查
|
//道具异常检查
|
||||||
ItemLogic.getInstance().checkItem(user);
|
ItemLogic.getInstance().checkItem(user);
|
||||||
|
|
|
@ -1093,6 +1093,14 @@ public class ItemLogic {
|
||||||
throw new ErrorCodeException(ErrorCode.ACCOUNT_ERROR);
|
throw new ErrorCodeException(ErrorCode.ACCOUNT_ERROR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Item item7 = user.getItemManager().getItem(1004);
|
||||||
|
if(item7 != null){
|
||||||
|
if(item7.getItemNum() >= 300){
|
||||||
|
String format = MessageFormat.format("道具异常,uid:{0},itemId:{1},itemNum:{2}", user.getId(), item6.getItemId(),item6.getItemNum());
|
||||||
|
LOGGER.error(format);
|
||||||
|
throw new ErrorCodeException(ErrorCode.ACCOUNT_ERROR);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue