From 53c0e273476c36242791d3b217950509cbcc17dc Mon Sep 17 00:00:00 2001 From: DRG Date: Tue, 6 Jan 2026 00:51:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20TouchGal=20API=20?= =?UTF-8?q?=E5=9F=9F=E5=90=8D=E5=8F=8A=E6=90=9C=E7=B4=A2=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 API 域名从 touchgal.us 更新为 touchgal.top。 - 将搜索接口的返回结果数量限制从 24 调整为 12。 --- src/platforms/gal/TouchGal.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platforms/gal/TouchGal.ts b/src/platforms/gal/TouchGal.ts index e6726ab..d85b05d 100644 --- a/src/platforms/gal/TouchGal.ts +++ b/src/platforms/gal/TouchGal.ts @@ -1,8 +1,8 @@ import { fetchClient } from "../../utils/httpClient"; import type { Platform, PlatformSearchResult, SearchResultItem } from "../../types"; -const API_URL = "https://www.touchgal.us/api/search"; -const BASE_URL = "https://www.touchgal.us/"; +const API_URL = "https://www.touchgal.top/api/search"; +const BASE_URL = "https://www.touchgal.top/"; async function searchTouchGal(game: string): Promise { const searchResult: PlatformSearchResult = { @@ -13,7 +13,7 @@ async function searchTouchGal(game: string): Promise { try { const payload = { queryString: JSON.stringify([{ type: "keyword", name: game }]), - limit: 24, // Hardcoded as per original script + limit: 12, // Hardcoded as per original script searchOption: { searchInIntroduction: false, searchInAlias: true,