上传传功塔代码

This commit is contained in:
liwei 2023-07-11 20:09:45 +08:00
parent 5f8665e133
commit d14f0e8d9f

View File

@ -4,7 +4,6 @@ import (
"go_dreamfactory/comm"
"go_dreamfactory/modules"
"go_dreamfactory/pb"
"go_dreamfactory/sys/configure"
"sort"
"go_dreamfactory/lego/base"
@ -97,9 +96,10 @@ func (this *Passon) HeroUpLv(uid string, heroid string, lv int32) {
if heros[i].Ispasson {
change[heros[i].Id] = false
for ii, v := range passon.Student {
if v.Heroid == heros[ii].Id {
passon.Student[ii].State = 2
passon.Student[ii].Cdtime = configure.Now().Unix()
if v.Heroid == heros[i].Id {
passon.Student[ii].State = 0
passon.Student[ii].Cdtime = 0
passon.Student[ii].Heroid = ""
}
}
}