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

feat(fight): 添加战斗日志记录功能

- 在战斗循环中添加错误时的战斗日志记录
- 新增RecordFight方法用于记录战斗相关信息
- 排除特定用户ID(10001)的日志记录
- 添加炫彩精灵相关里程碑枚举注释
```
This commit is contained in:
昔念
2026-01-31 03:55:58 +08:00
parent d6f8e9dbf7
commit d3d6b65e41
3 changed files with 22 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import (
"blazing/common/socket/errorcode"
"blazing/common/utils"
"blazing/cool"
"blazing/modules/base/service"
"context"
"blazing/logic/service/common"
@@ -31,6 +32,7 @@ func (f *FightC) battleLoop() {
head := common.NewTomeeHeader(1001, p.Info.UserID)
head.Result = uint32(errorcode.ErrorCodes.ErrSystemBusyTryLater)
service.NewBaseSysLogService().RecordFight(p.Info.UserID, gconv.String(err))
//实际上这里有个问题,会造成重复保存问题