From 9818a1af74db023c16f3dc46e5b134f5e6494499 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 14 Aug 2023 18:05:55 +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 --- .../common/http/live/LiveNetManager.java | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java index 8fc7bdbfe..11ea3c8f5 100644 --- a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java +++ b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java @@ -57,6 +57,8 @@ import com.yunbao.common.http.API; import com.yunbao.common.http.ResponseModel; import com.yunbao.common.http.base.CheckLiveCallBack; import com.yunbao.common.http.base.HttpCallback; +import com.yunbao.common.utils.ToastUtil; +import com.yunbao.common.utils.WordUtil; import java.util.ArrayList; import java.util.HashMap; @@ -176,8 +178,16 @@ public class LiveNetManager { .subscribe(listResponseModel -> { List setAttentsModels = listResponseModel.getData().getInfo(); if (setAttentsModels.size() > 0) { - if (callback != null) + if (callback != null) { + if (listResponseModel.getData().getCode() == 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]"); + } + } callback.onSuccess(setAttentsModels.get(0)); + } } else { if (callback != null) callback.onError("操作失效"); @@ -1985,9 +1995,9 @@ public class LiveNetManager { }).isDisposed(); } - public void getGiftGuide(String liveUid,String toUid ,HttpCallback> callback) { + public void getGiftGuide(String liveUid, String toUid, HttpCallback> callback) { API.get().pdLiveApi(mContext) - .getGiftGuide(liveUid,toUid) + .getGiftGuide(liveUid, toUid) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(new Consumer>>() { @@ -2007,9 +2017,9 @@ public class LiveNetManager { }).isDisposed(); } - public void getGiftGuideHistory(String toUid,String liveUid, HttpCallback> callback) { + public void getGiftGuideHistory(String toUid, String liveUid, HttpCallback> callback) { API.get().pdLiveApi(mContext) - .getGiftGuideHistory(liveUid,toUid) + .getGiftGuideHistory(liveUid, toUid) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(new Consumer>>() { @@ -2138,6 +2148,7 @@ public class LiveNetManager { } }).isDisposed(); } + public void getCheckFansLevelUpgrade(String liveUid, HttpCallback callback) { API.get().pdLiveApi(mContext) .getCheckFansLevelUpgrade(liveUid)