zoujiajian 11 kuukautta sitten
vanhempi
sitoutus
98e61f205f

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

@@ -331,6 +331,11 @@ public interface Constant {
 	 */
 	String NANO_ONLY_ACCOUNT = "nano123";
 
+	/**
+	 * codex
+	 */
+	String CODEX_ONLY_ACCOUNT = "codex123";
+
 	/**
 	 * 免登录渠道
 	 */

+ 5 - 1
netflix-service/src/main/java/com/cyksj/service/groups/impl/GroupFunServiceImpl.java

@@ -100,7 +100,7 @@ public class GroupFunServiceImpl implements GroupsFuncService {
 		Boolean isMirror = sku.getIsMirror();
 		Boolean isCar = sku.getIsCar();
 		String account = null;
-		if ((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 == 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;
 			}
@@ -124,6 +124,10 @@ public class GroupFunServiceImpl implements GroupsFuncService {
 			if (goodsId == Constant.NANO_GOODS_ID) {
 				account = Constant.NANO_ONLY_ACCOUNT;
 			}
+			//codex
+			if (goodsId == Constant.CODEX_GOODS_ID) {
+				account = Constant.CODEX_ONLY_ACCOUNT;
+			}
 			AccountView accountView = beanSearcher.searchFirst(AccountView.class, MapUtils.builder()
 					.field(AccountView::getGoodsId, goodsId)
 					.field(AccountView::getAccount, account).