|  | @@ -10,7 +10,6 @@ import com.zanxiang.advertising.tencent.base.rpc.IUserActionSetRpc;
 | 
											
												
													
														|  |  import com.zanxiang.game.module.base.pojo.enums.DeleteEnum;
 |  |  import com.zanxiang.game.module.base.pojo.enums.DeleteEnum;
 | 
											
												
													
														|  |  import com.zanxiang.game.module.base.pojo.enums.GameCategoryEnum;
 |  |  import com.zanxiang.game.module.base.pojo.enums.GameCategoryEnum;
 | 
											
												
													
														|  |  import com.zanxiang.game.module.base.pojo.enums.StatusEnum;
 |  |  import com.zanxiang.game.module.base.pojo.enums.StatusEnum;
 | 
											
												
													
														|  | -import com.zanxiang.game.module.manage.enums.GameActionSetEnum;
 |  | 
 | 
											
												
													
														|  |  import com.zanxiang.game.module.manage.pojo.dto.GameAppletConfigDTO;
 |  |  import com.zanxiang.game.module.manage.pojo.dto.GameAppletConfigDTO;
 | 
											
												
													
														|  |  import com.zanxiang.game.module.manage.pojo.dto.GameAppletDTO;
 |  |  import com.zanxiang.game.module.manage.pojo.dto.GameAppletDTO;
 | 
											
												
													
														|  |  import com.zanxiang.game.module.manage.pojo.dto.GameDTO;
 |  |  import com.zanxiang.game.module.manage.pojo.dto.GameDTO;
 | 
											
										
											
												
													
														|  | @@ -63,8 +62,7 @@ public class GameAppletServiceImpl extends ServiceImpl<GameAppletMapper, GameApp
 | 
											
												
													
														|  |                  .eq(GameApplet::getGameId, game.getId())
 |  |                  .eq(GameApplet::getGameId, game.getId())
 | 
											
												
													
														|  |          );
 |  |          );
 | 
											
												
													
														|  |          if (gameApplet == null) {
 |  |          if (gameApplet == null) {
 | 
											
												
													
														|  | -            this.createActionSet(game.getCategory(), game.getIsPut(), gameAppletConfigDTO.getAppId(),
 |  | 
 | 
											
												
													
														|  | -                    game.getName(), gameAppletConfigDTO.getType());
 |  | 
 | 
											
												
													
														|  | 
 |  | +            this.createActionSet(game.getCategory(), game.getIsPut(), gameAppletConfigDTO.getAppId(), game.getName());
 | 
											
												
													
														|  |              gameApplet = GameApplet.builder()
 |  |              gameApplet = GameApplet.builder()
 | 
											
												
													
														|  |                      .gameId(game.getId())
 |  |                      .gameId(game.getId())
 | 
											
												
													
														|  |                      .appId(gameAppletConfigDTO.getAppId())
 |  |                      .appId(gameAppletConfigDTO.getAppId())
 | 
											
										
											
												
													
														|  | @@ -109,17 +107,12 @@ public class GameAppletServiceImpl extends ServiceImpl<GameAppletMapper, GameApp
 | 
											
												
													
														|  |                      JsonUtil.toString(gameDTO), JsonUtil.toString(gameAppletDTO));
 |  |                      JsonUtil.toString(gameDTO), JsonUtil.toString(gameAppletDTO));
 | 
											
												
													
														|  |              return Boolean.FALSE;
 |  |              return Boolean.FALSE;
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -        return this.createActionSet(gameDTO.getCategory(), gameDTO.getIsPut(), gameAppletDTO.getAppId(),
 |  | 
 | 
											
												
													
														|  | -                gameDTO.getName(), gameAppletDTO.getType());
 |  | 
 | 
											
												
													
														|  | 
 |  | +        return this.createActionSet(gameDTO.getCategory(), gameDTO.getIsPut(), gameAppletDTO.getAppId(), gameDTO.getName());
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -    private Boolean createActionSet(Long gameCategory, Boolean isPut, String appId, String gameName, Integer type) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +    private Boolean createActionSet(Long gameCategory, Boolean isPut, String appId, String gameName) {
 | 
											
												
													
														|  |          CreateUserActionSetRpcDTO actionSetRpcDTO = CreateUserActionSetRpcDTO.builder()
 |  |          CreateUserActionSetRpcDTO actionSetRpcDTO = CreateUserActionSetRpcDTO.builder()
 | 
											
												
													
														|  | -                .appId(appId)
 |  | 
 | 
											
												
													
														|  | -                .type(GameActionSetEnum.getGameActionSet(type))
 |  | 
 | 
											
												
													
														|  | -                .name(gameName + "数据源")
 |  | 
 | 
											
												
													
														|  | -                .wechatAppId(appId)
 |  | 
 | 
											
												
													
														|  | -                .build();
 |  | 
 | 
											
												
													
														|  | 
 |  | +                .appId(appId).type("WEB").name(gameName + "Web数据源").build();
 | 
											
												
													
														|  |          //小游戏和H5的类型才需要创建数据源
 |  |          //小游戏和H5的类型才需要创建数据源
 | 
											
												
													
														|  |          List<Long> categoryList = Arrays.asList(GameCategoryEnum.CATEGORY_WX_APPLET.getId(), GameCategoryEnum.CATEGORY_H5.getId());
 |  |          List<Long> categoryList = Arrays.asList(GameCategoryEnum.CATEGORY_WX_APPLET.getId(), GameCategoryEnum.CATEGORY_H5.getId());
 | 
											
												
													
														|  |          //投放的游戏才需要设置数据源
 |  |          //投放的游戏才需要设置数据源
 |