|
@@ -42,12 +42,12 @@ public class GameAppletShellServiceImpl extends ServiceImpl<GameAppletShellMappe
|
|
|
public Integer getShellSwitch(String appId, String version) {
|
|
|
GameExt gameExt = gameExtService.getByGameAppId(appId);
|
|
|
if (gameExt == null) {
|
|
|
- throw new BaseException("参数错误, 游戏信息不存在");
|
|
|
+ throw new BaseException("游戏参数设置错误, 游戏信息不存在");
|
|
|
}
|
|
|
GameAppletShell gameAppletShell = super.getOne(new LambdaQueryWrapper<GameAppletShell>()
|
|
|
.eq(GameAppletShell::getGameId, gameExt.getGameId()));
|
|
|
if (gameAppletShell == null) {
|
|
|
- throw new BaseException("参数错误, 游戏设置信息不存在");
|
|
|
+ throw new BaseException("游戏参数设置错误, 游戏设置信息不存在");
|
|
|
}
|
|
|
//版本为提审版本
|
|
|
if (Objects.equals(gameAppletShell.getArraignVersion(), version)) {
|
|
@@ -59,11 +59,15 @@ public class GameAppletShellServiceImpl extends ServiceImpl<GameAppletShellMappe
|
|
|
if (Objects.equals(gameAppletShell.getIsAppeal(), Boolean.TRUE)) {
|
|
|
return ShellSwitchEnum.SHELL_SWITCH_APPEAL.getShellSwitch();
|
|
|
}
|
|
|
+ //开启
|
|
|
+ if (Objects.equals(gameAppletShell.getProControlType(), ShellControlEnum.SHELL_CONTROL_OPEN.getShellControl())) {
|
|
|
+ return ShellSwitchEnum.SHELL_SWITCH_OPEN.getShellSwitch();
|
|
|
+ }
|
|
|
//返回关闭
|
|
|
return ShellSwitchEnum.SHELL_SWITCH_CLOSE.getShellSwitch();
|
|
|
}
|
|
|
log.error("版本信息不存在, appId : {}, version : {}", appId, version);
|
|
|
- throw new BaseException("参数错误, 版本信息不存在");
|
|
|
+ throw new BaseException("游戏参数设置错误, 版本信息不存在");
|
|
|
}
|
|
|
|
|
|
@Override
|