修改BUG

This commit is contained in:
2025-09-02 23:03:08 +08:00
parent fe4ff5655a
commit 101eb87e5f
94 changed files with 2147 additions and 2203 deletions

View File

@@ -109,13 +109,13 @@ public class CommonAppContext extends MultiDexApplication {
AgoraManager.getInstance(this).init(currentEnvironment.getSwSdkAppId());
MessageListenerSingleton.getInstance();
CrashReport.initCrashReport(this, "ac3ed4d89f", true);/*bugly初始化*/
// ServiceUtils.startService(MyMqttService.class);/*Mqtt初始化*/
// 初始化MQTT服务
// 获取单例实例
MyMqttService mqttService = MyMqttService.getInstance(this);
// 启动服务
mqttService.startService();
// // 启动 MQTT 服务
Intent mqttServiceIntent = new Intent(this, MyMqttService.class);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
startForegroundService(mqttServiceIntent);
} else {
startService(mqttServiceIntent);
}
// 每次启动应用时重置状态
SpUtil.getInstance().setBooleanValue("youth_model_shown", false);