Jelajahi Sumber

fixgemini 车位问题

chenbiao 7 bulan lalu
induk
melakukan
305793e270

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

@@ -348,7 +348,13 @@ public interface Constant {
 	 */
 	String CODEX_ONLY_ACCOUNT = "codex123";
 
-	/**
+    /**
+     * gmini
+     */
+    String GMINI_ONLY_ACCOUNT = "GeminiPro123";
+
+
+    /**
 	 * 免登录渠道
 	 */
 	List<String> NO_SIGN_CHANNEL_NAMES = List.of("百度", "巨量");

+ 6 - 2
netflix-service/src/main/java/com/cyksj/service/groups/impl/GroupFunServiceImpl.java

@@ -100,8 +100,8 @@ public class GroupFunServiceImpl implements GroupsFuncService {
 		Boolean isMirror = sku.getIsMirror();
 		Boolean isCar = sku.getIsCar();
 		String account = null;
-		if ((goodsId == Constant.CODEX_GOODS_ID) || (goodsId == Constant.NANO_GOODS_ID) || (goodsId == Constant.CLAUDE_CODE_GOODS_ID) || (goodsId == 88 && isMirror) || (goodsId == 87 && isMirror) || (goodsId == 18 && isCar) || (goodsId == 26 && isMirror) || (goodsId == 75 && isCar)) {
-			if (goodsId == 18) {
+        if ((goodsId == Constant.GEMINI_GOODS_ID && isMirror) || (goodsId == Constant.CODEX_GOODS_ID) || (goodsId == Constant.NANO_GOODS_ID) || (goodsId == Constant.CLAUDE_CODE_GOODS_ID) || (goodsId == 88 && isMirror) || (goodsId == 87 && isMirror) || (goodsId == 18 && isCar) || (goodsId == 26 && isMirror) || (goodsId == 75 && isCar)) {
+            if (goodsId == 18) {
 				account = Constant.GPT_CAR_ONLY_ACCOUNT;
 			}
 			if (goodsId == 26) {
@@ -128,6 +128,10 @@ public class GroupFunServiceImpl implements GroupsFuncService {
 			if (goodsId == Constant.CODEX_GOODS_ID) {
 				account = Constant.CODEX_ONLY_ACCOUNT;
 			}
+            //gmini
+            if (goodsId == Constant.GEMINI_GOODS_ID) {
+                account = Constant.GMINI_ONLY_ACCOUNT;
+            }
 			AccountView accountView = beanSearcher.searchFirst(AccountView.class, MapUtils.builder()
 					.field(AccountView::getGoodsId, goodsId)
 					.field(AccountView::getAccount, account).