报错修改
This commit is contained in:
parent
8e5c18f2a7
commit
6871a1a50b
@ -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 == "" {
|
if req.HeroObjID == "" {
|
||||||
code.Code = pb.ErrorCode_ReqParameterError
|
code.Code = pb.ErrorCode_ReqParameterError
|
||||||
return
|
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() {
|
defer func() {
|
||||||
if code == pb.ErrorCode_Success {
|
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{})
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ func (this *apiComp) StrengthenUpStarCheck(session comm.IUserSession, req *pb.He
|
|||||||
var (
|
var (
|
||||||
curLv int32
|
curLv int32
|
||||||
target *cfg.Game_heroStarupData // 配置表目标升星英雄信息
|
target *cfg.Game_heroStarupData // 配置表目标升星英雄信息
|
||||||
raceHero *pb.DBHeroData // 消耗的阵容英雄
|
raceHero *pb.DBHero // 消耗的阵容英雄
|
||||||
costRaceCount int32
|
costRaceCount int32
|
||||||
curGold int32
|
curGold int32
|
||||||
)
|
)
|
||||||
|
@ -480,7 +480,6 @@ func (x *HeroStrengthenUpStarReq) GetHero() []*CostCardData {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (x *HeroStrengthenUpStarReq) GetHeroRace() []*CostCardData {
|
func (x *HeroStrengthenUpStarReq) GetHeroRace() []*CostCardData {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.HeroRace
|
return x.HeroRace
|
||||||
|
Loading…
Reference in New Issue
Block a user