记录所有首次获的英雄的数据

This commit is contained in:
meixiongfeng 2022-12-15 14:00:40 +08:00
parent 266520c5a0
commit d1a176cfcf
2 changed files with 5 additions and 3 deletions

View File

@ -138,7 +138,7 @@ func (this *modelMail) checkReddot26(uid string) bool {
return false
}
for _, v := range mailinfo {
if v.Reward && len(v.Items) > 0 {
if !v.Reward && len(v.Items) > 0 {
return true
}
}

View File

@ -23,8 +23,10 @@ func (this *apiComp) GetTujian(session comm.IUserSession, req *pb.UserGetTujianR
this.module.Error("玩家扩展数据", log.Fields{"uid": uid, "err": err.Error()})
return
} else {
for k := range result.Tujian {
rsp.Heroids = append(rsp.Heroids, k)
for k, v := range result.Tujian {
if v == 0 {
rsp.Heroids = append(rsp.Heroids, k)
}
}
}
err := session.SendMsg(string(this.module.GetType()), UserGetTujianResp, rsp)