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