特惠礼包修复
This commit is contained in:
parent
53b065dd38
commit
12764c1070
@ -138,15 +138,15 @@ func GetSpecialShopGrade(Money float64, Type int) int {
|
||||
})
|
||||
}
|
||||
sort.Slice(l, func(i, j int) bool {
|
||||
return l[i].money < l[j].money
|
||||
return l[i].money > l[j].money
|
||||
})
|
||||
|
||||
for _, v := range l {
|
||||
if Money < v.money {
|
||||
if Money <= v.money {
|
||||
return v.id
|
||||
}
|
||||
}
|
||||
return 0
|
||||
return l[0].id
|
||||
}
|
||||
|
||||
func GetUnlockShopLv() int {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user