上传错误码修复
This commit is contained in:
parent
4c0309b170
commit
f8edc79654
@ -37,7 +37,7 @@ func (this *apiComp) ChallengeReceive(session comm.IUserSession, req *pb.CombatC
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if level, err = this.module.configure.getCombatLevel(info.Currlevel); err != nil {
|
if level, err = this.module.configure.getCombatLevel(info.Currlevel); err != nil {
|
||||||
code = pb.ErrorCode_DBError
|
code = pb.ErrorCode_ConfigNoFound
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if manster, err = this.module.configure.getGameCombatManster(req.Manster); err != nil {
|
if manster, err = this.module.configure.getGameCombatManster(req.Manster); err != nil {
|
||||||
|
@ -39,7 +39,7 @@ func (this *configureComp) getCombatLevel(id int32) (result *cfg.GameCombatLevel
|
|||||||
this.module.Errorln(err)
|
this.module.Errorln(err)
|
||||||
} else {
|
} else {
|
||||||
if result, ok = v.(*cfg.GameCombatLevel).GetDataMap()[id]; !ok {
|
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)
|
this.module.Errorln(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user