Skip to content
This repository was archived by the owner on Jul 17, 2026. It is now read-only.

Commit d0f840b

Browse files
rootclaude
authored andcommitted
fix: refactor version constants and add os parameter for 3018 fix
- DRAFT_VERSION: 3.3.7 → 3.3.8 - DA_VERSION: 3.3.7 → 3.3.8 - Replace hardcoded da_version/web_version with constants in core.ts - Add os: "windows" parameter to simulate Windows client requests Ref: PR #114 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 844b479 commit d0f840b

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/api/consts/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const DEFAULT_IMAGE_MODEL_US = "jimeng-4.5";
3535
export const DEFAULT_VIDEO_MODEL = "jimeng-video-3.5-pro";
3636

3737
// 草稿版本
38-
export const DRAFT_VERSION = "3.3.7";
38+
export const DRAFT_VERSION = "3.3.8";
3939
export const DRAFT_MIN_VERSION = "3.0.2";
4040

4141
// 图像模型映射

src/api/consts/dreamina.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export const BASE_URL_IMAGEX_HK = "https://imagex-normal-sg.capcutapi.com";
88

99

1010
export const WEB_VERSION = "7.5.0";
11-
export const DA_VERSION = "3.3.7";
11+
export const DA_VERSION = "3.3.8";
1212
export const AIGC_FEATURES = "app_lip_sync";

src/api/controllers/core.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import EX from "@/api/consts/exceptions.ts";
1010
import logger from "@/lib/logger.ts";
1111
import util from "@/lib/util.ts";
1212
import { JimengErrorHandler, JimengErrorResponse } from "@/lib/error-handler.ts";
13-
import { BASE_URL_DREAMINA_US, BASE_URL_DREAMINA_HK } from "@/api/consts/dreamina.ts";
13+
import { BASE_URL_DREAMINA_US, BASE_URL_DREAMINA_HK, DA_VERSION, WEB_VERSION } from "@/api/consts/dreamina.ts";
1414

1515
import {
1616
BASE_URL_CN,
@@ -300,9 +300,10 @@ export async function request(
300300
device_platform: "web",
301301
region: region,
302302
...(isUS || isHK || isJP || isSG ? {} : { webId: WEB_ID }),
303-
da_version: "3.3.7",
303+
da_version: DA_VERSION,
304+
os: "windows",
304305
web_component_open_flag: 1,
305-
web_version: "7.5.0",
306+
web_version: WEB_VERSION,
306307
aigc_features: "app_lip_sync",
307308
...(options.params || {}),
308309
};

0 commit comments

Comments
 (0)