Skip to content

Commit

Permalink
add 5.5 temporary missing cardfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed Feb 17, 2025
1 parent 5e913db commit d2c21f3
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions api/v2/images/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ const mainImagesPromise = fetch(
"https://assets.gi-tcg.guyutongxue.site/api/v2/images",
).then((r) => r.json());

const missingImages = [
"UI_Gcg_CardFace_Event_Event_NiyeLong",
"UI_Gcg_CardFace_Event_Food_MingShi",
"UI_Gcg_CardFace_Modify_Talent_Kachina",
"UI_Gcg_CardFace_Modify_Talent_Emilie",
"UI_Gcg_CardFace_Modify_Vehicle_LangChuan",
"UI_Gcg_CardFace_Assist_Location_YanmiZhu",
"UI_Gcg_CardFace_Char_Avatar_Kachina",
"UI_Gcg_CardFace_Char_Avatar_Emilie"
]

/**
* @typedef {import("@vercel/node").VercelRequest} VercelRequest
* @typedef {import("@vercel/node").VercelResponse} VercelResponse
Expand All @@ -27,6 +38,9 @@ export default async function handler(req, res) {
res.status(404).send("Not found");
return;
}
if (missingImages.includes(image)) {
return res.redirect(`/assets/${image}.webp`);
}
const mainImages = await mainImagesPromise;
let url;
if (mainImages[id]) {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit d2c21f3

Please sign in to comment.