master_ob2
PC-202302260912\Administrator 2023-09-22 14:09:07 +08:00
parent b0433d5e37
commit 3a8fd72ae5
3 changed files with 12 additions and 11 deletions

View File

@ -1,8 +1,9 @@
{ {
"version":"8", "version":"9",
"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"}, {"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"}
] ]
} }

View File

@ -56,7 +56,7 @@ public class Cmd_general extends GmAbstract {
String[] split = args[2].split("\\|"); String[] split = args[2].split("\\|");
for (String s : split) { for (String s : split) {
String[] strings = 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); ItemUtil.useItemLong(user,map, BIReason.GM_ROOT_REMOVE_ITEM,-999);
LOGGER.info("通过gm后台删除玩家道具uid{}item{}",uid, map); LOGGER.info("通过gm后台删除玩家道具uid{}item{}",uid, map);

View File

@ -1093,14 +1093,14 @@ public class ItemLogic {
throw new ErrorCodeException(ErrorCode.ACCOUNT_ERROR); throw new ErrorCodeException(ErrorCode.ACCOUNT_ERROR);
} }
} }
Item item7 = user.getItemManager().getItem(1004); // Item item7 = user.getItemManager().getItem(1004);
if(item7 != null){ // if(item7 != null){
if(item7.getItemNum() >= 300 && user.getId() != 10009366){ // if(item7.getItemNum() >= 300 && user.getId() != 10009366){
String format = MessageFormat.format("道具异常uid{0}itemId{1}itemNum{2}", user.getId(), item7.getItemId(),item7.getItemNum()); // String format = MessageFormat.format("道具异常uid{0}itemId{1}itemNum{2}", user.getId(), item7.getItemId(),item7.getItemNum());
LOGGER.error(format); // LOGGER.error(format);
throw new ErrorCodeException(ErrorCode.ACCOUNT_ERROR); // throw new ErrorCodeException(ErrorCode.ACCOUNT_ERROR);
} // }
} // }
} }
} }