接口调整
This commit is contained in:
parent
4eca46e2a7
commit
175ba83533
@ -147,7 +147,7 @@ type (
|
|||||||
// key 英雄唯一id value 是否传功
|
// key 英雄唯一id value 是否传功
|
||||||
PassonHero(session IUserSession, heroObjID map[string]bool) (errdata *pb.ErrorData)
|
PassonHero(session IUserSession, heroObjID map[string]bool) (errdata *pb.ErrorData)
|
||||||
|
|
||||||
GetVirtualHero(hero *pb.DBHero, lv int32) (vHero *pb.DBHero)
|
GetVirtualHero(hero *pb.DBHero, lv int32) *pb.DBHero
|
||||||
|
|
||||||
// 检查圣桃树奖励是否发放
|
// 检查圣桃树奖励是否发放
|
||||||
CheckPeachReward(session IUserSession, ctime int64)
|
CheckPeachReward(session IUserSession, ctime int64)
|
||||||
|
@ -928,9 +928,10 @@ func (this *Hero) PassonHero(session comm.IUserSession, heroObjID map[string]boo
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 构建一个虚拟等级的英雄
|
// 构建一个虚拟等级的英雄
|
||||||
func (this *Hero) GetVirtualHero(hero *pb.DBHero, lv int32) (vHero *pb.DBHero) {
|
func (this *Hero) GetVirtualHero(hero *pb.DBHero, lv int32) *pb.DBHero {
|
||||||
|
|
||||||
if hero == nil || lv <= 0 {
|
if hero == nil || lv <= 0 {
|
||||||
return nil
|
return hero
|
||||||
}
|
}
|
||||||
hero.Lv = lv
|
hero.Lv = lv
|
||||||
this.modelHero.PropertyCompute(hero)
|
this.modelHero.PropertyCompute(hero)
|
||||||
|
Loading…
Reference in New Issue
Block a user