新手招募选择最终结果 记录
This commit is contained in:
parent
bb06940682
commit
a9523967e5
@ -24,6 +24,7 @@ func (this *apiComp) SelectCard(session comm.IUserSession, req *pb.HeroSelectCar
|
|||||||
curSzCard []string
|
curSzCard []string
|
||||||
heroRecord *pb.DBHeroRecord
|
heroRecord *pb.DBHeroRecord
|
||||||
szStar []int32 //星级
|
szStar []int32 //星级
|
||||||
|
atno []*pb.UserAtno
|
||||||
)
|
)
|
||||||
|
|
||||||
if heroRecord, err = this.module.modelRecord.GetHeroRecord(session.GetUserId()); err != nil {
|
if heroRecord, err = this.module.modelRecord.GetHeroRecord(session.GetUserId()); err != nil {
|
||||||
@ -98,7 +99,9 @@ func (this *apiComp) SelectCard(session comm.IUserSession, req *pb.HeroSelectCar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.module.DispenseAtno(session, allres, true)
|
if errdata, atno = this.module.DispenseAtno(session, allres, true); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
heroRecord.Newcomplete = true
|
heroRecord.Newcomplete = true
|
||||||
heroRecord.Cur = []string{} // 清空数据
|
heroRecord.Cur = []string{} // 清空数据
|
||||||
@ -125,7 +128,7 @@ func (this *apiComp) SelectCard(session comm.IUserSession, req *pb.HeroSelectCar
|
|||||||
go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) {
|
go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) {
|
||||||
|
|
||||||
this.module.modelDrawRecode.AddDrawRecord(session, 1, curSzCard)
|
this.module.modelDrawRecode.AddDrawRecord(session, 1, curSzCard)
|
||||||
|
this.module.WriteUserLog(session.GetUserId(), "xinshou", comm.GMResAddType, "HeroSelectCardReq", atno)
|
||||||
this.module.HeroLibrary(session, curSzCard, szHero)
|
this.module.HeroLibrary(session, curSzCard, szHero)
|
||||||
this.module.SendTaskMsg(session, szStar, 10, 1, curSzCard)
|
this.module.SendTaskMsg(session, szStar, 10, 1, curSzCard)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user