报错修改

This commit is contained in:
meixiongfeng 2022-06-28 19:17:25 +08:00
parent 8e5c18f2a7
commit 6871a1a50b
3 changed files with 4 additions and 5 deletions

View File

@ -6,7 +6,7 @@ import (
)
//参数校验
func (this *apiComp) StrengthenUpSkillCheck(session comm.IUserSession, req *pb.Hero_StrengthenUpSkill_Req) (result map[string]interface{}, code comm.ErrorCode) {
func (this *apiComp) StrengthenUpSkillCheck(session comm.IUserSession, req *pb.HeroStrengthenUpSkillReq) (result map[string]interface{}, code comm.ErrorCode) {
if req.HeroObjID == "" {
code.Code = pb.ErrorCode_ReqParameterError
return
@ -16,11 +16,11 @@ func (this *apiComp) StrengthenUpSkillCheck(session comm.IUserSession, req *pb.H
}
/// 英雄技能升级
func (this *apiComp) StrengthenUpSkill(session comm.IUserSession, agrs map[string]interface{}, req *pb.Hero_StrengthenUpSkill_Req) (code pb.ErrorCode) {
func (this *apiComp) StrengthenUpSkill(session comm.IUserSession, agrs map[string]interface{}, req *pb.HeroStrengthenUpSkillReq) (code pb.ErrorCode) {
defer func() {
if code == pb.ErrorCode_Success {
session.SendMsg(string(this.moduleHero.GetType()), StrengthenUplv, &pb.Hero_StrengthenUpSkill_Resp{})
session.SendMsg(string(this.moduleHero.GetType()), StrengthenUplv, &pb.HeroStrengthenUpSkillResp{})
}
}()

View File

@ -16,7 +16,7 @@ func (this *apiComp) StrengthenUpStarCheck(session comm.IUserSession, req *pb.He
var (
curLv int32
target *cfg.Game_heroStarupData // 配置表目标升星英雄信息
raceHero *pb.DBHeroData // 消耗的阵容英雄
raceHero *pb.DBHero // 消耗的阵容英雄
costRaceCount int32
curGold int32
)

View File

@ -480,7 +480,6 @@ func (x *HeroStrengthenUpStarReq) GetHero() []*CostCardData {
return nil
}
func (x *HeroStrengthenUpStarReq) GetHeroRace() []*CostCardData {
if x != nil {
return x.HeroRace