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

fix(game): 修正扭蛋游戏错误码并清理调试代码

- 将扭蛋游戏中道具不足的错误码从系统错误修正为票券不足错误码
- 移除战斗服务中的调试打印语句和未使用的fmt包导入
```
This commit is contained in:
昔念
2026-02-03 23:57:06 +08:00
parent 4b83346f36
commit 76ee66f616
2 changed files with 2 additions and 3 deletions

View File

@@ -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