2 Commits 3f8c0e826f ... 5191b3e7c5

Author SHA1 Message Date
  Administrator 5191b3e7c5 Merge branch 'master' of http://zhi-edu.com:3000/lan/zedu_client 3 years ago
  Administrator 8a82ff68aa shuhao 3 years ago

+ 0 - 2
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/com/zedu/cocos/congming/app/ZeduApp.java

@@ -34,7 +34,5 @@ public class ZeduApp extends BaseApp {
         super.onAfterCreateApplication();
         super.onAfterCreateApplication();
         // 网络请求
         // 网络请求
         OkgoCreater.init(this);
         OkgoCreater.init(this);
-        // 守护进程
-        DaemonCreater.init(this);
     }
     }
 }
 }

+ 1 - 1
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/com/zedu/cocos/congming/app/daemon/DaemonCreater.java

@@ -8,7 +8,7 @@ public class DaemonCreater {
 
 
     public static void init(BaseApp app) {
     public static void init(BaseApp app) {
         // 初始化
         // 初始化
-        DaemonEnv.initialize(app, DaemonService_.class, DaemonEnv.DEFAULT_WAKE_UP_INTERVAL);
+        DaemonEnv.initialize(app, DaemonService_.class, 3 * 60 * 1000);
         // 启动
         // 启动
         DaemonService.sShouldStopService = false;
         DaemonService.sShouldStopService = false;
         DaemonEnv.startServiceMayBind(DaemonService_.class);
         DaemonEnv.startServiceMayBind(DaemonService_.class);

+ 1 - 1
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/com/zedu/cocos/congming/app/daemon/DaemonService.java

@@ -65,7 +65,7 @@ public class DaemonService extends AbsWorkService {
                     Logger.d("取消任务");
                     Logger.d("取消任务");
                     cancelJobAlarmSub();
                     cancelJobAlarmSub();
                 }).subscribe(count -> {
                 }).subscribe(count -> {
-                    Logger.d("count = " + count);
+                    System.out.println("DaemonService:count = " + count);
                     // 1、每隔5秒,更新最后操作时间
                     // 1、每隔5秒,更新最后操作时间
                     if (count > 0 && count % 5 == 0) {
                     if (count > 0 && count % 5 == 0) {
                         Logger.d("每 30 秒 更新最后操作时间...");
                         Logger.d("每 30 秒 更新最后操作时间...");