过滤tier=BIGWIN
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user