change the environment of demo

This commit is contained in:
Arrow Em
2021-08-04 18:40:06 +08:00
parent b9b8a863cc
commit ebd02b6a6d
8 changed files with 13 additions and 23 deletions

2
.idea/compiler.xml generated
View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="1.8" />
<bytecodeTargetLevel target="11" />
</component>
</project>

5
.idea/gradle.xml generated
View File

@@ -4,10 +4,10 @@
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="PLATFORM" />
<option name="testRunner" value="GRADLE" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="1.8" />
<option name="gradleJvm" value="11 (2)" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
@@ -27,7 +27,6 @@
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>

2
.idea/misc.xml generated
View File

@@ -13,7 +13,7 @@
<option name="HEAP_SIZE" value="1024" />
<option name="LOCALE" value="zh_CN" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="12" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

View File

@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>

View File

@@ -406,10 +406,10 @@ public class MoGoLiveManager {
switch (MoGoAiCloudClientConfig.getInstance().getNetMode()) {
case HTTP_DNS_ENV_DEV:
case HTTP_DNS_ENV_QA:
case HTTP_DNS_ENV_DEMO:
isTestEnv = true;
break;
case HTTP_DNS_ENV_RELEASE:
case HTTP_DNS_ENV_DEMO:
isTestEnv = false;
}
mExpressEngine = ZegoExpressEngine.createEngine(

View File

@@ -62,6 +62,10 @@ public class InternalPassportManager {
});
}
/**
* 演示环境(SHOW环境)和线上环境(RELEASE)均走 Environment.release
* @return {@link Environment}
*/
private Environment getNetEnvironment() {
int mode = mAiCloudClientConfig.getNetMode();
Environment environment;
@@ -70,7 +74,6 @@ public class InternalPassportManager {
environment = Environment.dev;
break;
case MogoHttpDnsConfig.HTTP_DNS_ENV_QA:
case MogoHttpDnsConfig.HTTP_DNS_ENV_DEMO:
environment = Environment.qa;
break;
default:

View File

@@ -64,13 +64,16 @@ public class ThirdPassportManager {
Log.w(TAG, "loginCallback" + loginCallback);
}
/**
* 演示环境(SHOW环境)和线上环境(RELEASE)均走 Environment.release
* @return {@link Environment}
*/
Environment environment;
switch (mAiCloudClientConfig.getNetMode()) {
case MogoHttpDnsConfig.HTTP_DNS_ENV_DEV:
environment = Environment.dev;
break;
case MogoHttpDnsConfig.HTTP_DNS_ENV_QA:
case MogoHttpDnsConfig.HTTP_DNS_ENV_DEMO:
environment = Environment.qa;
break;
default:

View File

@@ -28,9 +28,7 @@ public class SocketServicesConstants {
case HTTP_DNS_ENV_DEV:
return com.zhidao.socket.Environment.dev;
case HTTP_DNS_ENV_QA:
case HTTP_DNS_ENV_DEMO:
return com.zhidao.socket.Environment.qa;
case HTTP_DNS_ENV_RELEASE:
default:
return com.zhidao.socket.Environment.release;
}