过滤tier=BIGWIN

This commit is contained in:
2026-03-07 11:27:17 +08:00
parent e312154b0f
commit 4b6bbab9d1
2 changed files with 10 additions and 4 deletions

View File

@@ -79,11 +79,14 @@ class GameController extends OpenController
* 获取彩金池(中奖配置表)
* GET /api/game/lotteryPool
* header: token
* 返回 DiceRewardConfig 列表(彩金池/中奖配置)
* 返回 DiceRewardConfig 列表(彩金池/中奖配置),不包含 tier=BIGWIN
*/
public function lotteryPool(Request $request): Response
{
$list = DiceRewardConfig::getCachedList();
$list = array_values(array_filter($list, function ($row) {
return (string) ($row['tier'] ?? '') !== 'BIGWIN';
}));
return $this->success($list);
}