feat(fight): 添加战斗日志记录功能 - 在战斗循环中添加错误时的战斗日志记录 - 新增RecordFight方法用于记录战斗相关信息 - 排除特定用户ID(10001)的日志记录 - 添加炫彩精灵相关里程碑枚举注释 ```
This commit is contained in:
@@ -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))
|
||||
|
||||
//实际上这里有个问题,会造成重复保存问题
|
||||
|
||||
|
||||
Reference in New Issue
Block a user