test(fb): 修改游戏 ID 生成逻辑
- 将静态常量 GAME_ID 修改为 11111 - 在创建新游戏时,将游戏 ID 设置为 GAME_ID,而不是使用 Snowflake算法生成的随机 IDmain-meitian
parent
72810d4d0e
commit
b087305ba1
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue