调整退出粉丝团逻辑
This commit is contained in:
parent
d5953bd651
commit
5a4001c858
@ -316,13 +316,13 @@ public class CommonHttpUtil {
|
|||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (code == 0 && info.length > 0 || code == 1001) {
|
if (code == 0 && info.length > 0 || code == 1001) {
|
||||||
int isAttention = JSON.parseObject(info[0]).getIntValue("isattent");//1是 关注 0是未关注
|
int isAttention = JSON.parseObject(info[0]).getIntValue("isattent");//1是 关注 0是未关注
|
||||||
if (code == 1001) {
|
/* if (code == 1001) {
|
||||||
if (WordUtil.isNewZh()) {
|
if (WordUtil.isNewZh()) {
|
||||||
ToastUtil.show("粉絲團等級已清零,待領取獎勵已自動領取至【個性裝扮】");
|
ToastUtil.show("粉絲團等級已清零,待領取獎勵已自動領取至【個性裝扮】");
|
||||||
} else {
|
} 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]");
|
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));
|
EventBus.getDefault().post(new FollowEvent(touid, isAttention));
|
||||||
if (callback != null) {
|
if (callback != null) {
|
||||||
callback.callback(isAttention);
|
callback.callback(isAttention);
|
||||||
|
@ -179,13 +179,13 @@ public class LiveNetManager {
|
|||||||
List<SetAttentsModel> setAttentsModels = listResponseModel.getData().getInfo();
|
List<SetAttentsModel> setAttentsModels = listResponseModel.getData().getInfo();
|
||||||
if (setAttentsModels.size() > 0) {
|
if (setAttentsModels.size() > 0) {
|
||||||
if (callback != null) {
|
if (callback != null) {
|
||||||
if (listResponseModel.getData().getCode() == 1001) {
|
/* if (listResponseModel.getData().getCode() == 1001) {
|
||||||
if (WordUtil.isNewZh()) {
|
if (WordUtil.isNewZh()) {
|
||||||
ToastUtil.show("粉絲團等級已清零,待領取獎勵已自動領取至【個性裝扮】");
|
ToastUtil.show("粉絲團等級已清零,待領取獎勵已自動領取至【個性裝扮】");
|
||||||
} else {
|
} 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]");
|
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));
|
callback.onSuccess(setAttentsModels.get(0));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -2665,7 +2665,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
mViewMedal.setVisibility(View.GONE);
|
mViewMedal.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
if (mBtnFollow.getVisibility() == View.VISIBLE) {
|
if (mBtnFollow.getVisibility() == View.VISIBLE) {
|
||||||
LiveAudienceActivity.is_fans = "2";
|
|
||||||
mBtnFollow.setVisibility(View.GONE);
|
mBtnFollow.setVisibility(View.GONE);
|
||||||
mViewMedal.setVisibility(View.VISIBLE);
|
mViewMedal.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user