master_ob2
parent
b0433d5e37
commit
3a8fd72ae5
|
@ -1,8 +1,9 @@
|
|||
{
|
||||
"version":"8",
|
||||
"version":"9",
|
||||
"classes":[
|
||||
{"name":"ItemUtil.class","fullName":"com.ljsd.jieling.util.ItemUtil"},
|
||||
{"name":"GetPlayerInfoHandler.class","fullName":"com.ljsd.jieling.handler.GetPlayerInfoHandler"},
|
||||
{"name":"ItemLogic.class","fullName":"com.ljsd.jieling.logic.item.ItemLogic"}
|
||||
{"name":"ItemLogic.class","fullName":"com.ljsd.jieling.logic.item.ItemLogic"},
|
||||
{"name":"Cmd_general.class","fullName":"com.ljsd.jieling.kefu.Cmd_general"}
|
||||
]
|
||||
}
|
|
@ -56,7 +56,7 @@ public class Cmd_general extends GmAbstract {
|
|||
String[] split = args[2].split("\\|");
|
||||
for (String s : split) {
|
||||
String[] strings = s.split("#");
|
||||
map.put(Integer.parseInt(strings[0]),Long.parseLong(strings[0]));
|
||||
map.put(Integer.parseInt(strings[0]),Long.parseLong(strings[1]));
|
||||
}
|
||||
ItemUtil.useItemLong(user,map, BIReason.GM_ROOT_REMOVE_ITEM,-999);
|
||||
LOGGER.info("通过gm后台删除玩家道具,uid:{},item:{}",uid, map);
|
||||
|
|
|
@ -1093,14 +1093,14 @@ public class ItemLogic {
|
|||
throw new ErrorCodeException(ErrorCode.ACCOUNT_ERROR);
|
||||
}
|
||||
}
|
||||
Item item7 = user.getItemManager().getItem(1004);
|
||||
if(item7 != null){
|
||||
if(item7.getItemNum() >= 300 && user.getId() != 10009366){
|
||||
String format = MessageFormat.format("道具异常,uid:{0},itemId:{1},itemNum:{2}", user.getId(), item7.getItemId(),item7.getItemNum());
|
||||
LOGGER.error(format);
|
||||
throw new ErrorCodeException(ErrorCode.ACCOUNT_ERROR);
|
||||
}
|
||||
}
|
||||
// Item item7 = user.getItemManager().getItem(1004);
|
||||
// if(item7 != null){
|
||||
// if(item7.getItemNum() >= 300 && user.getId() != 10009366){
|
||||
// String format = MessageFormat.format("道具异常,uid:{0},itemId:{1},itemNum:{2}", user.getId(), item7.getItemId(),item7.getItemNum());
|
||||
// LOGGER.error(format);
|
||||
// throw new ErrorCodeException(ErrorCode.ACCOUNT_ERROR);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue