Skip to content

Commit

Permalink
chore: spine请求重定向到4.2版本
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9804 committed Dec 26, 2024
1 parent 5d1f27b commit 6ae6c8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ba-story-player/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export function getResourcesUrl(type: ResourcesTypes, arg: string): string {
const voiceFilename = arg.split("/").pop();
return `${dataUrl}/Audio/VoiceJp/Character_voice/${voiceDirectory}/${voiceFilename}.${oggAudioType}`;
case "l2dSpine":
return `${dataUrl}/spine/${arg}/${arg}.skel`;
return `${dataUrl.replaceAll("ba-all-data", "ba-all-data-spine42")}/spine/${arg}/${arg}.skel`;
case "otherL2dSpine":
return `${dataUrl}/spine/${arg}.skel`;
return `${dataUrl.replaceAll("ba-all-data", "ba-all-data-spine42")}/spine/${arg}.skel`;
case "excel":
// return `${dataUrl}/data/${arg}`; // FIXME: 临时禁用缓存
return `${dataUrl}/data/${arg}?t=${Math.floor(Date.now() / 3600000)}`;
Expand All @@ -77,9 +77,9 @@ export function getResourcesUrl(type: ResourcesTypes, arg: string): string {
// eslint-disable-next-line no-case-declarations
const filename = `${id}_spr`; //hasumi_spr
if (superSampling) {
return `${dataUrl}/spine/${filename}/${filename}${superSampling}/${filename}.skel`;
return `${dataUrl.replaceAll("ba-all-data", "ba-all-data-spine42")}/spine/${filename}/${filename}${superSampling}/${filename}.skel`;
}
return `${dataUrl}/spine/${filename}/${filename}.skel`;
return `${dataUrl.replaceAll("ba-all-data", "ba-all-data-spine42")}/spine/${filename}/${filename}.skel`;
case "bg":
// UIs/03_Scenario/01_Background/BG_WinterRoad.jpg
if (superSampling && /01_Background/.test(arg)) {
Expand Down

0 comments on commit 6ae6c8d

Please sign in to comment.