Browse Source

fix midjourney规格车位数暗改

zoujiajian 3 năm trước cách đây
mục cha
commit
a73be22470

+ 1 - 1
netflix-common/src/main/java/com/cyksj/common/constant/Constant.java

@@ -82,5 +82,5 @@ public interface Constant {
 
 	List<Long> CHAT_GPT_SKU_IDS = List.of(161l, 178l, 189l);
 
-	List<Long> MIDJOURNEY_SKU_IDS = List.of(175l, 185l, 186l);
+	List<Long> MIDJOURNEY_SKU_IDS = List.of(175l, 185l, 186l, 199l, 200l);
 }

+ 8 - 7
netflix-web/src/main/java/com/cyksj/web/controller/group/GroupController.java

@@ -80,13 +80,14 @@ public class GroupController {
                     List<GroupsRelationView> after = relationViewList.subList(relationViewList.size() - 1, 15);
                     all.addAll(after);
                 }
-                //MIDJOURNEY 标准会员月付10个 暗改15个 展示10个
-                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);
-                    List<GroupsRelationView> after = relationViewList.subList(relationViewList.size() - 5, 15);
-                    all.addAll(after);
-                }else {
-                    all =relationViewList;
+                //MIDJOURNEY 标准会员月付 Pro会员月付;Pro会员年付;标准会员年付;10个 暗改15个 展示10个
+                else if (groupsView.getSkuId().equals(Constant.MIDJOURNEY_SKU_IDS.get(1)) || groupsView.getSkuId().equals(Constant.MIDJOURNEY_SKU_IDS.get(2))
+		                || groupsView.getSkuId().equals(Constant.MIDJOURNEY_SKU_IDS.get(3)) || groupsView.getSkuId().equals(Constant.MIDJOURNEY_SKU_IDS.get(4))) {
+	                all = relationViewList.subList(0, 5);
+	                List<GroupsRelationView> after = relationViewList.subList(relationViewList.size() - 5, 15);
+	                all.addAll(after);
+                } else {
+	                all = relationViewList;
                 }
                 groupsView.setRelations(all);
             } else {