fix: 更新 TouchGal API 域名及搜索限制

- 将 API 域名从 touchgal.us 更新为 touchgal.top。
- 将搜索接口的返回结果数量限制从 24 调整为 12。
This commit is contained in:
DRG
2026-01-06 00:51:12 +08:00
parent 4e4da14a7b
commit 53c0e27347

View File

@@ -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<PlatformSearchResult> {
const searchResult: PlatformSearchResult = {
@@ -13,7 +13,7 @@ async function searchTouchGal(game: string): Promise<PlatformSearchResult> {
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,