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

This commit is contained in:
xinian
2026-04-15 15:07:27 +08:00
parent 523d835ac0
commit 5a81534e84
4 changed files with 58 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ func (h Controller) EggGamePlay(data1 *C2S_EGG_GAME_PLAY, c *player.Player) (res
if data1.EggNum > 10 || data1.EggNum <= 0 {
return nil, errorcode.ErrorCode(errorcode.ErrorCodes.ErrSystemError)
}
if r <= 0 || data1.EggNum >= r {
if r <= 0 || data1.EggNum > r {
return nil, errorcode.ErrorCode(errorcode.ErrorCodes.ErrGachaTicketsInsufficient)
}
if err := c.Service.Item.UPDATE(400501, int(-data1.EggNum)); err != nil {