修复玉虚

master_yuenan
DESKTOP-C3M45P4\dengdan 2025-04-15 15:17:43 +08:00
parent 76e4dd6d8d
commit 155c9505a4
1 changed files with 6 additions and 4 deletions

View File

@ -758,10 +758,12 @@ public class CrossYuxulundaoLogic {
if(item != null){
have = (int)item.getItemNum();
}
Map<Integer,Integer> removes = new HashMap<>();
removes.put(107,have);
int[][] items = ToolsUtil.getTwoArrayInt(removes);
ItemUtil.itemCost(user, items, BIReason.YUXU_DEAL, 0);
if(have > 0){
Map<Integer,Integer> removes = new HashMap<>();
removes.put(107,have);
int[][] items = ToolsUtil.getTwoArrayInt(removes);
ItemUtil.itemCost(user, items, BIReason.YUXU_DEAL, 0);
}
// 标记为已处理
String mark = RedisKey.CROSS_YUXULUNDAO_DEAL_MARK + RedisKey.Delimiter_colon + user.getId();
RedisUtil.getInstence().set(mark, "1");