上传文件至「Scripts」

This commit is contained in:
2026-04-30 13:22:18 +09:00
parent 1eab195bbd
commit b42d6c0507

View File

@@ -380,12 +380,8 @@ function ObjectKeys2LowerCase(obj) {
}
/* ====================== 入口 ====================== */
const SCRIPT_VERSION = "v5-url-based";
!(async () => {
try {
$.log(`\n========== 🚀 ${SCRIPT_VERSION} 已加载 ==========\n`);
// 模式判断:基于 $request.url 是否真的指向 nodeseek 的 getInfo API
//
// 背景Surge 在手动运行 cron 脚本时,会注入一个 mock 的 $request/$response
@@ -405,12 +401,6 @@ const SCRIPT_VERSION = "v5-url-based";
: "";
const isMitmMode = reqUrl.includes("nodeseek.com/api/account/getInfo");
$.log(
`[mode] $request.url="${reqUrl || "<none>"}" → ${
isMitmMode ? "抓cookie" : "签到"
}`
);
if (isMitmMode) {
await getCookie();
} else {