From 42854c9555aa1b2aca89e8a6934bc31bfc1f885a Mon Sep 17 00:00:00 2001 From: kangshulong <1095887643@qq.com> Date: Thu, 5 Mar 2026 19:34:58 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=A7=A3=E5=86=B3=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E9=94=99=E8=AF=AF=E7=A0=81=E5=9C=A8=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E4=BB=8E=E6=9C=AA=E6=88=90=E5=8A=9F=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E6=9C=AA=E6=8C=89=E6=AF=8F=E9=9A=941?= =?UTF-8?q?=E5=B0=8F=E6=97=B6=E8=AF=A2=E9=97=AE=E4=B8=80=E6=AC=A1=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/ik/mboxlauncher/SystemService.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/ik/mboxlauncher/SystemService.java b/app/src/main/java/com/ik/mboxlauncher/SystemService.java index abcc9f2..8884752 100644 --- a/app/src/main/java/com/ik/mboxlauncher/SystemService.java +++ b/app/src/main/java/com/ik/mboxlauncher/SystemService.java @@ -320,8 +320,13 @@ public class SystemService extends Service implements AppnetCallback, NetStateCh } boolean isTimeout = code==0 || message.contains("The server is busy"); if (isTimeout) { - handler.removeMessages(WHAT_PERIODIC_REQUEST); - handler.sendEmptyMessageDelayed(WHAT_PERIODIC_REQUEST, REQUEST_INTERVAL); + long lastSuccessTime = getLastSuccessTime(); + if (lastSuccessTime == 0) { + scheduleNextPeriodicRequest(); + } else { + handler.removeMessages(WHAT_PERIODIC_REQUEST); + handler.sendEmptyMessageDelayed(WHAT_PERIODIC_REQUEST, REQUEST_INTERVAL); + } } else { //保留原逻辑 scheduleNextPeriodicRequest();