获取英雄数据
This commit is contained in:
parent
09c9538fc7
commit
9c056126f2
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user