From 76ee66f61695b482dfd23d222b26ce154726b84c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <12574910+72wo@users.noreply.github.com> Date: Tue, 3 Feb 2026 23:57:06 +0800 Subject: [PATCH] =?UTF-8?q?```=20fix(game):=20=E4=BF=AE=E6=AD=A3=E6=89=AD?= =?UTF-8?q?=E8=9B=8B=E6=B8=B8=E6=88=8F=E9=94=99=E8=AF=AF=E7=A0=81=E5=B9=B6?= =?UTF-8?q?=E6=B8=85=E7=90=86=E8=B0=83=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将扭蛋游戏中道具不足的错误码从系统错误修正为票券不足错误码 - 移除战斗服务中的调试打印语句和未使用的fmt包导入 ``` --- logic/controller/action_扭蛋.go | 2 +- logic/service/fight/new.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/logic/controller/action_扭蛋.go b/logic/controller/action_扭蛋.go index 3bca6e4a..f4e153d0 100644 --- a/logic/controller/action_扭蛋.go +++ b/logic/controller/action_扭蛋.go @@ -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{}} diff --git a/logic/service/fight/new.go b/logic/service/fight/new.go index 2fea32a8..5ae77b49 100644 --- a/logic/service/fight/new.go +++ b/logic/service/fight/new.go @@ -8,7 +8,6 @@ import ( "blazing/logic/service/fight/info" "blazing/logic/service/fight/input" "blazing/logic/service/player" - "fmt" "math/rand" "time" ) @@ -16,7 +15,7 @@ import ( // 创建新战斗,邀请方和被邀请方,或者玩家和野怪方 func NewFight(p1, p2 common.PlayerI, fn func(info.FightOverInfo)) (*FightC, errorcode.ErrorCode) { - fmt.Println("NewFight", p1.GetInfo().UserID) + // fmt.Println("NewFight", p1.GetInfo().UserID) f := &FightC{} f.ownerID = p1.GetInfo().UserID