上传传功塔代码
This commit is contained in:
parent
5f8665e133
commit
d14f0e8d9f
@ -4,7 +4,6 @@ import (
|
|||||||
"go_dreamfactory/comm"
|
"go_dreamfactory/comm"
|
||||||
"go_dreamfactory/modules"
|
"go_dreamfactory/modules"
|
||||||
"go_dreamfactory/pb"
|
"go_dreamfactory/pb"
|
||||||
"go_dreamfactory/sys/configure"
|
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"go_dreamfactory/lego/base"
|
"go_dreamfactory/lego/base"
|
||||||
@ -97,9 +96,10 @@ func (this *Passon) HeroUpLv(uid string, heroid string, lv int32) {
|
|||||||
if heros[i].Ispasson {
|
if heros[i].Ispasson {
|
||||||
change[heros[i].Id] = false
|
change[heros[i].Id] = false
|
||||||
for ii, v := range passon.Student {
|
for ii, v := range passon.Student {
|
||||||
if v.Heroid == heros[ii].Id {
|
if v.Heroid == heros[i].Id {
|
||||||
passon.Student[ii].State = 2
|
passon.Student[ii].State = 0
|
||||||
passon.Student[ii].Cdtime = configure.Now().Unix()
|
passon.Student[ii].Cdtime = 0
|
||||||
|
passon.Student[ii].Heroid = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user