mirror of
https://github.com/Moe-Sakura/Wrangler-API.git
synced 2026-03-15 04:13:18 +08:00
fix: 更新 TouchGal API 域名及搜索限制
- 将 API 域名从 touchgal.us 更新为 touchgal.top。 - 将搜索接口的返回结果数量限制从 24 调整为 12。
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user