From 2cc58b920f2543033a174ffff663e8c01ecf62d1 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Fri, 22 Mar 2024 17:31:27 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=AA=BF=E6=95=B4=E5=AE=9A=E6=99=82?= =?UTF-8?q?=E5=99=A8=E5=8F=83=E6=95=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/common/utils/MessageSayHiNotifyManager.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/utils/MessageSayHiNotifyManager.java b/common/src/main/java/com/yunbao/common/utils/MessageSayHiNotifyManager.java index b728a5b2b..696df2a53 100644 --- a/common/src/main/java/com/yunbao/common/utils/MessageSayHiNotifyManager.java +++ b/common/src/main/java/com/yunbao/common/utils/MessageSayHiNotifyManager.java @@ -76,10 +76,15 @@ public class MessageSayHiNotifyManager { .getMessageSayHiTimer(new HttpCallback() { @Override public void onSuccess(MessageSayHiBean data) { - if (data.getStatus() == 0) { + if (data.getStatus() == -1) { Log.i(TAG, "onSuccess: 定时器为关,不再轮训"); return; } + if(data.getStatus()==0){ + timer = new Timer(); + timer.schedule(createTask(), data.getNextTime() * 1000L); + return; + } hiBean = data; showDialog(data); }