1
0

2 Commits 3f8c0e826f ... 5191b3e7c5

Autor SHA1 Nachricht Datum
  Administrator 5191b3e7c5 Merge branch 'master' of http://zhi-edu.com:3000/lan/zedu_client vor 3 Jahren
  Administrator 8a82ff68aa shuhao vor 3 Jahren

+ 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();
         // 网络请求
         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) {
         // 初始化
-        DaemonEnv.initialize(app, DaemonService_.class, DaemonEnv.DEFAULT_WAKE_UP_INTERVAL);
+        DaemonEnv.initialize(app, DaemonService_.class, 3 * 60 * 1000);
         // 启动
         DaemonService.sShouldStopService = false;
         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("取消任务");
                     cancelJobAlarmSub();
                 }).subscribe(count -> {
-                    Logger.d("count = " + count);
+                    System.out.println("DaemonService:count = " + count);
                     // 1、每隔5秒,更新最后操作时间
                     if (count > 0 && count % 5 == 0) {
                         Logger.d("每 30 秒 更新最后操作时间...");