From 03e4a3e46bebb41b4097a732aa8cb1b2225a04d1 Mon Sep 17 00:00:00 2001 From: cnk Date: Tue, 18 Mar 2025 13:49:04 +0800 Subject: [PATCH] fix(routes/asus/bios): remove pdid searchparam (#18627) --- lib/routes/asus/bios.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/routes/asus/bios.ts b/lib/routes/asus/bios.ts index 2bd81a185..2bb541dff 100644 --- a/lib/routes/asus/bios.ts +++ b/lib/routes/asus/bios.ts @@ -106,9 +106,7 @@ async function handler(ctx) { const language = ctx.req.param('lang') ?? 'en'; const productInfo = await getProductInfo(model, language); const biosAPI = - language === 'zh' - ? `https://www.asus.com.cn/support/api/product.asmx/GetPDBIOS?website=cn&model=${model}&pdid=${productInfo.productID}&sitelang=cn` - : `https://www.asus.com/support/api/product.asmx/GetPDBIOS?website=global&model=${model}&pdid=${productInfo.productID}&sitelang=en`; + language === 'zh' ? `https://www.asus.com.cn/support/api/product.asmx/GetPDBIOS?website=cn&model=${model}&sitelang=cn` : `https://www.asus.com/support/api/product.asmx/GetPDBIOS?website=global&model=${model}&sitelang=en`; const response = await ofetch(biosAPI); const biosList = response.Result.Obj[0].Files;