fix(game): 修正扭蛋游戏错误码并清理调试代码 - 将扭蛋游戏中道具不足的错误码从系统错误修正为票券不足错误码 - 移除战斗服务中的调试打印语句和未使用的fmt包导入 ```
This commit is contained in:
@@ -22,7 +22,7 @@ func (h Controller) EggGamePlay(data1 *egg.C2S_EGG_GAME_PLAY, c *player.Player)
|
||||
}
|
||||
r := c.Service.Item.CheakItem(400501)
|
||||
if r < uint32(data1.EggNum) {
|
||||
return nil, errorcode.ErrorCode(errorcode.ErrorCodes.ErrSystemError)
|
||||
return nil, errorcode.ErrorCode(errorcode.ErrorCodes.ErrGachaTicketsInsufficient)
|
||||
|
||||
}
|
||||
result = &egg.S2C_EGG_GAME_PLAY{ListInfo: []data.ItemInfo{}}
|
||||
|
||||
Reference in New Issue
Block a user