From 29354432ebf1ffeb6dfe7aa8c80df3c98ad170d3 Mon Sep 17 00:00:00 2001 From: AdingApkgg Date: Wed, 2 Jul 2025 03:47:51 +0800 Subject: [PATCH] 250702 --- index.html | 11 ++++------- main.js | 6 ++---- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index cb9cfac..a2c1490 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@

🎮 Galgame 聚合搜索

- + -
- - -
- + + 点我获取密码
diff --git a/main.js b/main.js index 13a8b64..5330278 100644 --- a/main.js +++ b/main.js @@ -31,7 +31,6 @@ form.addEventListener("submit", async (e) => { e.preventDefault(); clearUI(); const game = form.game.value.trim(); - const magic = form.magic.checked; const zypassword = form.zypassword.value.trim(); if (!game) { errorDiv.textContent = "游戏名称不能为空"; @@ -40,7 +39,7 @@ form.addEventListener("submit", async (e) => { form.querySelector("button").disabled = true; try { await searchGameStream( - { gameName: game, magic, zypassword }, + { gameName: game, zypassword }, { onProgress: (progress) => { progressDiv.textContent = `进度: ${progress.completed} / ${progress.total}`; @@ -65,13 +64,12 @@ form.addEventListener("submit", async (e) => { }); async function searchGameStream( - { gameName, magic = false, zypassword = "" }, + { gameName, zypassword = "" }, { onProgress, onResult, onDone, onError } ) { const url = "https://searchgal.homes/search"; const formData = new FormData(); formData.append("game", gameName); - formData.append("magic", magic.toString()); if (zypassword) formData.append("zypassword", zypassword); try { const response = await fetch(url, {