This commit is contained in:
by 2024-05-10 16:02:09 +08:00
commit b232f44a27
7 changed files with 28 additions and 12 deletions

Binary file not shown.

View File

@ -19,7 +19,7 @@
1
],
"Effect": [
0,
1,
0,
1
],
@ -49,7 +49,7 @@
1
],
"Effect": [
0,
1,
0,
1
],
@ -79,7 +79,7 @@
1
],
"Effect": [
0,
1,
0,
1
],
@ -109,7 +109,7 @@
1
],
"Effect": [
0,
1,
0,
1
],

View File

@ -1,5 +1,5 @@
6т├у├ж├в├с├"║█ю└=
.ш├ь├ы├з├"║█ю└=
Wс├у├ж├ы├т├в├ь├з├ш" ║█─╜Б
]ш├с├ж├в├ь├э├т├у├ы├з"╒█Т
6ж├в├ст├у"║█ю└=
.ь├ы├зш"║█ю└=
Wы├з├ш├с├у├в├ь├т├ж" ║█─╜Б
]у├ж├ш├ы├з├э├с├т├в├ь"╒█Т

Binary file not shown.

2
public

@ -1 +1 @@
Subproject commit 4ccd5acb111b25d6cf440fa1e390bc4614accbca
Subproject commit 4736a4cac4352a63eb6965336eed31b17219f83e

View File

@ -76,9 +76,9 @@ func (this *GameDropMgr) GetDropInfoByBaseScore(gameId, baseCoin int32) []*GameD
i := sort.Search(len(arr), func(i int) bool {
return arr[i].BaseCoin > int64(baseCoin)
})
if i < len(arr) && i > 0 {
n := arr[i-1].BaseCoin
for i := i - 1; i >= 0; i-- {
f := func(n int64, i int) {
for ; i >= 0; i-- {
if arr[i].BaseCoin == n {
ret = append(ret, arr[i])
} else {
@ -86,5 +86,21 @@ func (this *GameDropMgr) GetDropInfoByBaseScore(gameId, baseCoin int32) []*GameD
}
}
}
// 找到
if i < len(arr) && i > 0 {
n := arr[i-1].BaseCoin
f(n, i-1)
}
if len(ret) == 0 {
// 没找到,最大底注是否可用
i = len(arr) - 1
n := arr[i].BaseCoin
if n <= int64(baseCoin) {
f(n, i)
}
}
return ret
}

Binary file not shown.