上传错误码修复

This commit is contained in:
liwei1dao 2022-11-25 14:18:24 +08:00
parent 4c0309b170
commit f8edc79654
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ func (this *apiComp) ChallengeReceive(session comm.IUserSession, req *pb.CombatC
return
}
if level, err = this.module.configure.getCombatLevel(info.Currlevel); err != nil {
code = pb.ErrorCode_DBError
code = pb.ErrorCode_ConfigNoFound
return
}
if manster, err = this.module.configure.getGameCombatManster(req.Manster); err != nil {

View File

@ -39,7 +39,7 @@ func (this *configureComp) getCombatLevel(id int32) (result *cfg.GameCombatLevel
this.module.Errorln(err)
} else {
if result, ok = v.(*cfg.GameCombatLevel).GetDataMap()[id]; !ok {
err = fmt.Errorf("on found GameMonster:%d", id)
err = fmt.Errorf("on found getCombatLevel:%d", id)
this.module.Errorln(err)
}
}