From f91ba79c5ccf62707fa8316fc44e7bf6b2477653 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 14 Aug 2023 17:54:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=B3=E6=B3=A8=E7=9A=84co?= =?UTF-8?q?de=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/common/http/CommonHttpUtil.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/http/CommonHttpUtil.java b/common/src/main/java/com/yunbao/common/http/CommonHttpUtil.java index 96739f97c..5123178c6 100644 --- a/common/src/main/java/com/yunbao/common/http/CommonHttpUtil.java +++ b/common/src/main/java/com/yunbao/common/http/CommonHttpUtil.java @@ -314,8 +314,15 @@ public class CommonHttpUtil { .execute(new HttpCallback() { @Override public void onSuccess(int code, String msg, String[] info) { - if (code == 0 && info.length > 0) { + if (code == 0 && info.length > 0 || code == 1001) { int isAttention = JSON.parseObject(info[0]).getIntValue("isattent");//1是 关注 0是未关注 + if (code == 1001) { + if (WordUtil.isNewZh()) { + ToastUtil.show("粉絲團等級已清零,待領取獎勵已自動領取至【個性裝扮】"); + } else { + ToastUtil.show("The level of the fan club has been cleared, and the rewards to be claimed have been automatically received to [Personalized Dressing]"); + } + } EventBus.getDefault().post(new FollowEvent(touid, isAttention)); if (callback != null) { callback.callback(isAttention);