|
@@ -48,16 +48,18 @@ public class GroupController {
|
|
|
.build());
|
|
.build());
|
|
|
List<GroupsRelationView> all = null;
|
|
List<GroupsRelationView> all = null;
|
|
|
//GPT 月付 暗改成20个 展示10个
|
|
//GPT 月付 暗改成20个 展示10个
|
|
|
- if (groupsView.getSkuId().equals(Constant.CHAT_GPT_SKU_IDS.get(0))) {
|
|
|
|
|
|
|
+ if (groupsView.getSkuId().equals(Constant.CHAT_GPT_SKU_IDS.get(0)) && groupsView.getNum() == 20) {
|
|
|
all = relationViewList.subList(0, 5);
|
|
all = relationViewList.subList(0, 5);
|
|
|
List<GroupsRelationView> after = relationViewList.subList(relationViewList.size() - 5, 20);
|
|
List<GroupsRelationView> after = relationViewList.subList(relationViewList.size() - 5, 20);
|
|
|
all.addAll(after);
|
|
all.addAll(after);
|
|
|
}
|
|
}
|
|
|
//GPT 4人月付暗改成6个 展示4个
|
|
//GPT 4人月付暗改成6个 展示4个
|
|
|
- if (groupsView.getSkuId().equals(Constant.CHAT_GPT_SKU_IDS.get(1))) {
|
|
|
|
|
|
|
+ else if (groupsView.getSkuId().equals(Constant.CHAT_GPT_SKU_IDS.get(1)) && groupsView.getNum() == 6) {
|
|
|
all = relationViewList.subList(0, 2);
|
|
all = relationViewList.subList(0, 2);
|
|
|
List<GroupsRelationView> after = relationViewList.subList(relationViewList.size() - 2, 6);
|
|
List<GroupsRelationView> after = relationViewList.subList(relationViewList.size() - 2, 6);
|
|
|
all.addAll(after);
|
|
all.addAll(after);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ all = relationViewList;
|
|
|
}
|
|
}
|
|
|
groupsView.setRelations(all);
|
|
groupsView.setRelations(all);
|
|
|
} else if (Constant.MIDJOURNEY_SKU_IDS.contains(groupsView.getSkuId()) && groupsView.getNum() == 15) {
|
|
} else if (Constant.MIDJOURNEY_SKU_IDS.contains(groupsView.getSkuId()) && groupsView.getNum() == 15) {
|
|
@@ -73,10 +75,12 @@ public class GroupController {
|
|
|
all.addAll(after);
|
|
all.addAll(after);
|
|
|
}
|
|
}
|
|
|
//MIDJOURNEY 标准会员月付10个 暗改15个 展示10个
|
|
//MIDJOURNEY 标准会员月付10个 暗改15个 展示10个
|
|
|
- if (groupsView.getSkuId().equals(Constant.MIDJOURNEY_SKU_IDS.get(1)) || groupsView.getSkuId().equals(Constant.MIDJOURNEY_SKU_IDS.get(2))) {
|
|
|
|
|
|
|
+ else if (groupsView.getSkuId().equals(Constant.MIDJOURNEY_SKU_IDS.get(1)) || groupsView.getSkuId().equals(Constant.MIDJOURNEY_SKU_IDS.get(2))) {
|
|
|
all = relationViewList.subList(0, 5);
|
|
all = relationViewList.subList(0, 5);
|
|
|
List<GroupsRelationView> after = relationViewList.subList(relationViewList.size() - 5, 15);
|
|
List<GroupsRelationView> after = relationViewList.subList(relationViewList.size() - 5, 15);
|
|
|
all.addAll(after);
|
|
all.addAll(after);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ all =relationViewList;
|
|
|
}
|
|
}
|
|
|
groupsView.setRelations(all);
|
|
groupsView.setRelations(all);
|
|
|
} else {
|
|
} else {
|