```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

feat(item): 调整玄彩道具使用数量限制

玄彩道具检查逻辑从 items <= 0 修改为 items < 100,
确保玩家拥有至少100个道具才能使用。

fix(fight): 修复战斗操作通道阻塞问题

添加10秒超时机制到战斗操作通道发送逻辑中,
避免通道满载时的
This commit is contained in:
昔念
2026-02-23 10:21:58 +08:00
parent c78e8e13c3
commit 4fff047c4c
3 changed files with 27 additions and 8 deletions

View File

@@ -102,7 +102,7 @@ func (h Controller) handlexuancaiItem(currentPet *model.PetInfo, c *player.Playe
return errorcode.ErrorCodes.ErrItemUnusable
}
items := c.Service.Item.CheakItem(uint32(xmlres.PetMAP[int(currentPet.ID)].Type) + 400686)
if items <= 0 {
if items < 100 {
return errorcode.ErrorCodes.ErrInsufficientItems
}
c.Service.Item.UPDATE(uint32(items), -100)