输出日志

This commit is contained in:
meixiongfeng 2023-03-27 15:55:12 +08:00
parent f1cc783b7c
commit 78fe971932

View File

@ -3,6 +3,7 @@ package dispatch
import (
"errors"
"go_dreamfactory/comm"
"go_dreamfactory/lego/sys/log"
"go_dreamfactory/pb"
cfg "go_dreamfactory/sys/configure/structs"
@ -43,6 +44,7 @@ func (a *apiComp) Do(session comm.IUserSession, req *pb.DispatchDoReq) (code pb.
}
if len(req.HeroIds) < int(dConf.Taskneed) {
a.module.Error("英雄派遣:", log.Field{Key: "HeroIds len", Value: len(req.HeroIds)}, log.Field{Key: "HeroIds len", Value: dConf.Taskneed})
code = pb.ErrorCode_DispatchHeroNoEnough
return
}