30 lines
710 B
Go
30 lines
710 B
Go
package hero
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/pb"
|
|
)
|
|
|
|
//参数校验
|
|
func (this *apiComp) StrengthenUpStarCheck(session comm.IUserSession, req *pb.Hero_StrengthenUpStar_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
|
if req.HeroObjID == "" {
|
|
code.Code = pb.ErrorCode_ReqParameterError
|
|
return
|
|
}
|
|
// 校验指定英雄
|
|
|
|
return
|
|
}
|
|
|
|
/// 英雄升星
|
|
func (this *apiComp) StrengthenUpStar(session comm.IUserSession, agrs map[string]interface{}, req *pb.Hero_StrengthenUpStar_Req) (code pb.ErrorCode) {
|
|
|
|
defer func() {
|
|
if code == pb.ErrorCode_Success {
|
|
session.SendMsg(string(this.moduleHero.GetType()), StrengthenUplv, &pb.Hero_StrengthenUpStar_Resp{})
|
|
}
|
|
}()
|
|
|
|
return
|
|
}
|