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;