|
@@ -62,7 +62,7 @@ public class GameAppletServiceImpl extends ServiceImpl<GameAppletMapper, GameApp
|
|
|
.eq(GameApplet::getGameId, game.getId())
|
|
|
);
|
|
|
if (gameApplet == null) {
|
|
|
- this.createActionSet(game.getCategory(), game.getIsPut(), gameAppletConfigDTO.getAppId());
|
|
|
+ this.createActionSet(game.getCategory(), game.getIsPut(), gameAppletConfigDTO.getAppId(), game.getName());
|
|
|
gameApplet = GameApplet.builder()
|
|
|
.gameId(game.getId())
|
|
|
.appId(gameAppletConfigDTO.getAppId())
|
|
@@ -107,11 +107,12 @@ public class GameAppletServiceImpl extends ServiceImpl<GameAppletMapper, GameApp
|
|
|
JsonUtil.toString(gameDTO), JsonUtil.toString(gameAppletDTO));
|
|
|
return Boolean.FALSE;
|
|
|
}
|
|
|
- return this.createActionSet(gameDTO.getCategory(), gameDTO.getIsPut(), gameAppletDTO.getAppId());
|
|
|
+ return this.createActionSet(gameDTO.getCategory(), gameDTO.getIsPut(), gameAppletDTO.getAppId(), gameDTO.getName());
|
|
|
}
|
|
|
|
|
|
- private Boolean createActionSet(Long gameCategory, Boolean isPut, String appId) {
|
|
|
- CreateUserActionSetRpcDTO actionSetRpcDTO = CreateUserActionSetRpcDTO.builder().appId(appId).build();
|
|
|
+ private Boolean createActionSet(Long gameCategory, Boolean isPut, String appId, String gameName) {
|
|
|
+ CreateUserActionSetRpcDTO actionSetRpcDTO = CreateUserActionSetRpcDTO.builder()
|
|
|
+ .appId(appId).name(gameName + "数据源").build();
|
|
|
//小游戏和H5的类型才需要创建数据源
|
|
|
List<Long> categoryList = Arrays.asList(GameCategoryEnum.CATEGORY_WX_APPLET.getId(), GameCategoryEnum.CATEGORY_H5.getId());
|
|
|
//投放的游戏才需要设置数据源
|