获取英雄数据

This commit is contained in:
meixiongfeng 2023-06-06 17:47:42 +08:00
parent 09c9538fc7
commit 9c056126f2

View File

@ -119,7 +119,7 @@ func (this *Hero) createRepeatHero(session comm.IUserSession, heroCfgId string,
// 获取英雄
func (this *Hero) GetHeroByObjID(uid, heroId string) (hero *pb.DBHero, errdata *pb.ErrorData) {
hero = this.modelHero.getOneHero(uid, heroId)
if hero != nil {
if hero == nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_HeroNoExist,
Title: pb.ErrorCode_HeroNoExist.ToString(),