特惠礼包修复

This commit is contained in:
hahwu 2025-06-30 17:08:02 +08:00
parent 53b065dd38
commit 12764c1070

View File

@ -138,15 +138,15 @@ func GetSpecialShopGrade(Money float64, Type int) int {
}) })
} }
sort.Slice(l, func(i, j int) bool { 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 { for _, v := range l {
if Money < v.money { if Money <= v.money {
return v.id return v.id
} }
} }
return 0 return l[0].id
} }
func GetUnlockShopLv() int { func GetUnlockShopLv() int {