上传共鸣水晶代码
This commit is contained in:
parent
16cb8c7108
commit
82dfe43457
@ -79,7 +79,7 @@ func (this *Passon) HeroUpLv(uid string, heroid string, lv int32) {
|
|||||||
heros = this.ModuleHero.GetHeroList(uid)
|
heros = this.ModuleHero.GetHeroList(uid)
|
||||||
// 使用sort.Slice进行排序
|
// 使用sort.Slice进行排序
|
||||||
sort.Slice(heros, func(i, j int) bool {
|
sort.Slice(heros, func(i, j int) bool {
|
||||||
return heros[i].Lv < heros[j].Lv
|
return heros[i].Lv > heros[j].Lv
|
||||||
})
|
})
|
||||||
|
|
||||||
if len(heros) < 5 {
|
if len(heros) < 5 {
|
||||||
|
Loading…
Reference in New Issue
Block a user