From f2e6ffd2d6d4190052b59fc2acfa0b2de4e59741 Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 20 Dec 2025 13:23:15 +0800 Subject: [PATCH] feat(providers): add DMXAPI as official partner Mark DMXAPI as partner in both Claude and Codex presets with promotion message for their Claude Code exclusive model 66% OFF offer. --- src/config/claudeProviderPresets.ts | 2 ++ src/config/codexProviderPresets.ts | 2 ++ src/i18n/locales/en.json | 3 ++- src/i18n/locales/ja.json | 3 ++- src/i18n/locales/zh.json | 3 ++- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/config/claudeProviderPresets.ts b/src/config/claudeProviderPresets.ts index ec3e2f8ad..851e9e794 100644 --- a/src/config/claudeProviderPresets.ts +++ b/src/config/claudeProviderPresets.ts @@ -350,6 +350,8 @@ export const providerPresets: ProviderPreset[] = [ // 请求地址候选(用于地址管理/测速),用户可自行选择/覆盖 endpointCandidates: ["https://www.dmxapi.cn", "https://api.dmxapi.cn"], category: "aggregator", + isPartner: true, // 合作伙伴 + partnerPromotionKey: "dmxapi", // 促销信息 i18n key }, { name: "PackyCode", diff --git a/src/config/codexProviderPresets.ts b/src/config/codexProviderPresets.ts index 326d51187..6b788d074 100644 --- a/src/config/codexProviderPresets.ts +++ b/src/config/codexProviderPresets.ts @@ -131,6 +131,8 @@ requires_openai_auth = true`, "gpt-5.1-codex", ), endpointCandidates: ["https://www.dmxapi.cn/v1"], + isPartner: true, // 合作伙伴 + partnerPromotionKey: "dmxapi", // 促销信息 i18n key }, { name: "PackyCode", diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 98f849c63..5d531edcb 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -264,7 +264,8 @@ "zhipu": "Zhipu GLM is an official partner of CC Switch. Use this link to top up and get a 10% discount", "packycode": "PackyCode is an official partner of CC Switch. Register using this link and enter \"cc-switch\" promo code during recharge to get 10% off", "minimax_cn": "MiniMax Coding Plan Special Offer, Starter from ¥9.9", - "minimax_en": "MiniMax Coding Plan Black Friday, Starter is now $2/mo (80% OFF!)" + "minimax_en": "MiniMax Coding Plan Black Friday, Starter is now $2/mo (80% OFF!)", + "dmxapi": "Claude Code exclusive model 66% OFF now!" }, "parameterConfig": "Parameter Config - {{name}} *", "mainModel": "Main Model (optional)", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index ec79a4e08..c39753b70 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -264,7 +264,8 @@ "zhipu": "Zhipu GLM は CC Switch の公式パートナーです。リンク経由でチャージすると 10% 割引", "packycode": "PackyCode は CC Switch の公式パートナーです。登録後チャージ時に \"cc-switch\" を入力すると 10% オフ", "minimax_cn": "MiniMax Coding Plan 特別価格、Starter ¥9.9 から", - "minimax_en": "MiniMax Coding Plan Black Friday、Starter が月額 $2(80% OFF)" + "minimax_en": "MiniMax Coding Plan Black Friday、Starter が月額 $2(80% OFF)", + "dmxapi": "Claude Code 専用モデル 66% OFF 実施中!" }, "parameterConfig": "パラメーター設定 - {{name}} *", "mainModel": "メインモデル(任意)", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 14dd6278c..8d74ac2bf 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -264,7 +264,8 @@ "zhipu": "智谱 GLM 是 CC Switch 的官方合作伙伴,使用此链接充值可以获得9折优惠", "packycode": "PackyCode 是 CC Switch 的官方合作伙伴,使用此链接注册并在充值时填写 \"cc-switch\" 优惠码,可以享受9折优惠", "minimax_cn": "MiniMax Coding Plan 特惠,Starter 套餐 9.9 元起", - "minimax_en": "MiniMax Coding Plan 黑五特惠,Starter 套餐现仅 $2/月(2折优惠!)" + "minimax_en": "MiniMax Coding Plan 黑五特惠,Starter 套餐现仅 $2/月(2折优惠!)", + "dmxapi": "Claude Code 专属模型 3.4 折优惠进行中!" }, "parameterConfig": "参数配置 - {{name}} *", "mainModel": "主模型 (可选)",