登录区分虚拟服务器

这个提交包含在:
xuqm 2023-05-19 18:31:08 +08:00
父节点 a9cac35b04
当前提交 e4307d5d32
共有 7 个文件被更改,包括 10 次插入8 次删除

2
.idea/compiler.xml 自动生成的
查看文件

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

2
.idea/misc.xml 自动生成的
查看文件

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" /> <component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">

查看文件

@ -12,8 +12,6 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro" consumerProguardFiles "consumer-rules.pro"
versionCode 1
versionName '1.0.0'
} }
buildTypes { buildTypes {

查看文件

@ -66,6 +66,8 @@ public class ImManager implements IMInterface {
@Override @Override
public void connectComplete(boolean reconnect, String serverURI) { public void connectComplete(boolean reconnect, String serverURI) {
Log.e("======>connectComplete", reconnect + "::" + serverURI); Log.e("======>connectComplete", reconnect + "::" + serverURI);
status = 0;
if (reconnect) return;
try { try {
mqttClient.subscribe(Constant.getSdkAppID() + "/message" + Constant.getUserId(), 2); mqttClient.subscribe(Constant.getSdkAppID() + "/message" + Constant.getUserId(), 2);
mqttClient.subscribe(Constant.getSdkAppID() + "/pang" + Constant.getUserId(), 2); mqttClient.subscribe(Constant.getSdkAppID() + "/pang" + Constant.getUserId(), 2);

查看文件

@ -1,5 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins { plugins {
id 'com.android.application' version '7.4.2' apply false id 'com.android.application' version '8.0.1' apply false
id 'com.android.library' version '7.4.2' apply false id 'com.android.library' version '8.0.1' apply false
} }

查看文件

@ -19,3 +19,5 @@ android.useAndroidX=true
# resources declared in the library itself and none from the library's dependencies, # resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library # thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true android.nonTransitiveRClass=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false

查看文件

@ -1,6 +1,6 @@
#Tue May 16 10:36:25 CST 2023 #Tue May 16 10:36:25 CST 2023
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME