6.5.4礼物冠名

This commit is contained in:
18401019693 2023-08-08 15:37:11 +08:00
parent 44b95cb1c6
commit 20c00e2896

View File

@ -117,9 +117,35 @@ public class LiveNewWishListFragment extends BaseFragment {
}
}
switch (type) {
case 1:
Bus.get().post(new LiveNewWishListCloseEvent().setDayWish(false));
break;
case 2:
Bus.get().post(new LiveNewWishListCloseEvent().setZhouXin(false));
break;
case 3:
Bus.get().post(new LiveNewWishListCloseEvent().setLunarWish(false));
break;
case 4:
Bus.get().post(new LiveNewWishListCloseEvent().setSeasonalWish(false));
break;
}
if (wishList2.size() == 0) {
Bus.get().post(new PopupViewDismissEvent());
LiveNetManager.get(getContext()).
setWishlistV2(type, gson.toJson(wishList2), new HttpCallback<String>() {
@Override
public void onSuccess(String data) {
Bus.get().post(new PopupViewDismissEvent());
ToastUtil.show("修改成功");
}
@Override
public void onError(String error) {
ToastUtil.show(R.string.net_error);
}
});
} else if (wishList2.size() == 1) {
new XPopup.Builder(getContext())
.asCustom(new HintCustomPopup(getContext(),
@ -140,6 +166,7 @@ public class LiveNewWishListFragment extends BaseFragment {
@Override
public void onSuccess(String data) {
Bus.get().post(new PopupViewDismissEvent());
ToastUtil.show("修改成功");
}
@Override
@ -164,7 +191,8 @@ public class LiveNewWishListFragment extends BaseFragment {
setWishlistV2(type, gson.toJson(wishList2), new HttpCallback<String>() {
@Override
public void onSuccess(String data) {
Bus.get().post(new PopupViewDismissEvent());
ToastUtil.show("修改成功");
}
@Override
@ -174,20 +202,5 @@ public class LiveNewWishListFragment extends BaseFragment {
});
}
switch (type) {
case 1:
Bus.get().post(new LiveNewWishListCloseEvent().setDayWish(false));
break;
case 2:
Bus.get().post(new LiveNewWishListCloseEvent().setZhouXin(false));
break;
case 3:
Bus.get().post(new LiveNewWishListCloseEvent().setLunarWish(false));
break;
case 4:
Bus.get().post(new LiveNewWishListCloseEvent().setSeasonalWish(false));
break;
}
}
}