GameRound status 调整
This commit is contained in:
@@ -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("当前不在下注阶段");
|
||||
}
|
||||
|
||||
// 检查余额
|
||||
|
||||
Reference in New Issue
Block a user