Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
a8a33ffd5e
@ -94,8 +94,10 @@ func (this *apiComp) Info(session comm.IUserSession, req *pb.ArenaInfoReq) (errd
|
||||
)
|
||||
ids = make([]string, len(info.Defend.Formt))
|
||||
for i, v := range info.Defend.Formt {
|
||||
if v != nil {
|
||||
ids[i] = v.Id
|
||||
}
|
||||
}
|
||||
if heros, err = this.module.modelArena.queryUserHeros(session.GetUserId(), ids); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
|
@ -108,6 +108,9 @@ func (this *apiComp) Buy(session comm.IUserSession, req *pb.IsLandBuyReq) (errda
|
||||
Property: make(map[int32]int32),
|
||||
AddProperty: make(map[int32]int32),
|
||||
JuexProperty: make(map[int32]int32),
|
||||
TalentProperty: make(map[int32]int32),
|
||||
HoroscopeProperty: make(map[int32]int32),
|
||||
Fetters: make(map[int32]int32),
|
||||
}
|
||||
this.module.hero.GetVirtualHero(hero, hero.Lv)
|
||||
this.module.modelhero.addheros(session.GetUserId(), hero)
|
||||
|
Loading…
Reference in New Issue
Block a user