test(fb): 修改游戏 ID 生成逻辑

- 将静态常量 GAME_ID 修改为 11111
- 在创建新游戏时,将游戏 ID 设置为 GAME_ID,而不是使用 Snowflake算法生成的随机 ID
main-meitian
liaoyong 2025-04-08 13:36:57 +08:00
parent 72810d4d0e
commit b087305ba1
1 changed files with 2 additions and 2 deletions

View File

@ -317,7 +317,7 @@ public class FBSportsServiceImpl implements IGamesService {
}
throw new ApiException(ErrorCode.Get_Url_Failure.getCode());
}
private static final Long GAME_ID = 1904452832756013817L;
private static final Long GAME_ID = 11111L;
/**
*
*
@ -333,7 +333,7 @@ public class FBSportsServiceImpl implements IGamesService {
//不存在这个游戏
if (ObjectUtils.isEmpty(game)) {
game = new Game();
game.setId(IdUtil.getSnowflakeNextId());
game.setId(/*IdUtil.getSnowflakeNextId()*/GAME_ID);
game.setSortNo(1);
//game.setPlatformId(gamePlatform.getId());
game.setPlatformCode(platform.getPlatformCode());