输出日志
This commit is contained in:
parent
f1cc783b7c
commit
78fe971932
@ -3,6 +3,7 @@ package dispatch
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"go_dreamfactory/comm"
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/lego/sys/log"
|
||||||
"go_dreamfactory/pb"
|
"go_dreamfactory/pb"
|
||||||
cfg "go_dreamfactory/sys/configure/structs"
|
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) {
|
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
|
code = pb.ErrorCode_DispatchHeroNoEnough
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user