心愿单设置加限制
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user