From 4b48227d61f1210388577388bc0c21b32781c34d Mon Sep 17 00:00:00 2001 From: Yizelove Date: Tue, 1 Jul 2025 10:20:22 +0800 Subject: [PATCH] Last Sync: 2025-07-01 10:20 --- public/static/event.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/static/event.js b/public/static/event.js index b9d2564..c8e9fcd 100644 --- a/public/static/event.js +++ b/public/static/event.js @@ -24,7 +24,8 @@ function onSelect() { client_uid_views.hidden = false; secret_key_views.hidden = true; const driver_pre = driver_txt_input.value.split("_")[0]; - direct_url_input.value = `https://api.oplist.org/${driver_pre}/callback`; + const hostname = window.location.hostname; + direct_url_input.value = `https://${hostname}/${driver_pre}/callback`; // 修改一些样式 ======================================================== const clientIdContainer = client_uid_input.closest('.mb-3');