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); }