GameRound status 调整

This commit is contained in:
wells
2026-08-08 22:00:39 +08:00
parent 52061b9d59
commit cfb5b4f2a8
11 changed files with 171 additions and 103 deletions
@@ -61,12 +61,12 @@ public class BetServiceImpl implements IBetService {
return null;
}
// 检查进行中的局
// 检查进行中的局(下注中)
GameRound round = gameRoundMapper.selectOne(new LambdaQueryWrapper<GameRound>()
.eq(GameRound::getGroupId, groupId)
.eq(GameRound::getStatus, 0));
.eq(GameRound::getStatus, IGameService.STATUS_BETTING));
if (round == null) {
throw new RuntimeException("当前没有进行中的局");
throw new RuntimeException("当前不在下注阶段");
}
// 检查余额