diff --git a/modules/hero/api_heroSkillUp.go b/modules/hero/api_heroSkillUp.go index c8ccb984e..6503a575e 100644 --- a/modules/hero/api_heroSkillUp.go +++ b/modules/hero/api_heroSkillUp.go @@ -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{}) } }() diff --git a/modules/hero/api_heroStarUp.go b/modules/hero/api_heroStarUp.go index 3b327cdc2..030e21f3e 100644 --- a/modules/hero/api_heroStarUp.go +++ b/modules/hero/api_heroStarUp.go @@ -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 ) diff --git a/pb/hero_msg.pb.go b/pb/hero_msg.pb.go index b7453daa2..0d136263e 100644 --- a/pb/hero_msg.pb.go +++ b/pb/hero_msg.pb.go @@ -480,7 +480,6 @@ func (x *HeroStrengthenUpStarReq) GetHero() []*CostCardData { return nil } - func (x *HeroStrengthenUpStarReq) GetHeroRace() []*CostCardData { if x != nil { return x.HeroRace