|
@@ -16,6 +16,7 @@ import com.zanxiang.game.module.sdk.service.IGameUserRoleService;
|
|
|
import com.zanxiang.module.util.JsonUtil;
|
|
|
import com.zanxiang.module.util.exception.BaseException;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.logging.log4j.util.Strings;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -71,6 +72,10 @@ public class GameAppletShellServiceImpl extends ServiceImpl<GameAppletShellMappe
|
|
|
if (Objects.equals(gameAppletShell.getTestVersion(), version)) {
|
|
|
return ShellSwitchEnum.SHELL_SWITCH_CLOSE.getShellSwitch();
|
|
|
}
|
|
|
+ //测试版本, 关闭壳包, 兼容需要多个版本的情况
|
|
|
+ if (Strings.isNotBlank(gameAppletShell.getTestVersion()) && gameAppletShell.getTestVersion().contains(version)) {
|
|
|
+ return ShellSwitchEnum.SHELL_SWITCH_CLOSE.getShellSwitch();
|
|
|
+ }
|
|
|
//兜底逻辑, 找不到版本号直接返回进入壳包
|
|
|
log.error("版本信息不存在, 默认进壳包, appId : {}, version : {}", appId, version);
|
|
|
return ShellSwitchEnum.SHELL_SWITCH_OPEN.getShellSwitch();
|