From 739f3537f15dc0d9d98e0ddc551fe75d1486c00f Mon Sep 17 00:00:00 2001 From: Guyutongxue Date: Mon, 30 Dec 2024 11:16:43 +0800 Subject: [PATCH] fix thumb url --- api/v2/images/[id].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v2/images/[id].js b/api/v2/images/[id].js index c41e751..8897cf3 100644 --- a/api/v2/images/[id].js +++ b/api/v2/images/[id].js @@ -32,7 +32,7 @@ export default function handler(req, res) { if (image.includes("CardFace")) { url = `https://api.hakush.in/gi/UI/${image}.webp`; } else { - url = `https://assets.gi-tcg.guyutongxue.site/assets/${image}.webp?thumb=${thumb}`; + url = `https://assets.gi-tcg.guyutongxue.site/assets/${thumb ? 'thumbs/' : '' }${image}.webp`; } res.status(307).setHeader("Location", url).send(void 0); } \ No newline at end of file