心愿单设置加限制

This commit is contained in:
18401019693
2023-04-13 13:08:58 +08:00
parent 32fa77be39
commit 06289b44d9
6 changed files with 12 additions and 2 deletions

View File

@@ -119,6 +119,10 @@ public class LiveNewWishListFragment extends BaseFragment {
if (wishList2.size() == 0) {
Bus.get().post(new PopupViewDismissEvent());
} else {
if (wishList2.size()>10){
ToastUtil.show(R.string.must_hint);
return;
}
LiveNetManager.get(getContext()).
setWishlistV2(type, gson.toJson(wishList2), new HttpCallback<String>() {
@Override

View File

@@ -326,7 +326,10 @@ public class LiveNewWishListPopup extends BottomPopupView {
}
List<WishModel2> wishList2 = new ArrayList<>();
Gson gson = new Gson();
if (wishList2.size()>10){
ToastUtil.show(R.string.must_hint);
return;
}
LiveNetManager.get(getContext()).
setWishlistV2(type, gson.toJson(wishList2), new HttpCallback<String>() {
@Override