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)