上传代码容错处理

This commit is contained in:
liwei1dao 2023-12-21 14:13:46 +08:00
parent 40cc979580
commit 15ebbdd53e

View File

@ -104,6 +104,7 @@ func (this *Hero) createRepeatHero(session comm.IUserSession, heroCfgId string,
Title: pb.ErrorCode_ConfigNoFound.ToString(),
Message: err.Error(),
}
return
}
hero, atno, err = this.modelHero.createHero(session, heroCfgId, num)
if err == nil {
@ -119,6 +120,7 @@ func (this *Hero) createRepeatHero(session comm.IUserSession, heroCfgId string,
Title: pb.ErrorCode_HeroCreate.ToString(),
Message: err.Error(),
}
return
}
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype1, 1, utils.ToInt32(heroCfgId)))
tasks = append(tasks, comm.GetBuriedParam2(comm.Rtype30, heroCfgId, cfg.Color))