JS脚本:等待到具体时间waitUntilSpecifiedTime v1.3 (#2150)

增加对当天日期的判断,防止之前的配置组超时导致之后的配置组执行拖延至第二天
This commit is contained in:
火山
2025-10-15 23:40:10 +08:00
committed by GitHub
parent 443f161e06
commit 9f1d436bc1
4 changed files with 154 additions and 173 deletions

View File

@@ -1,100 +1,30 @@
[
{
"name": "specifyHours",
"type": "select",
"label": "设置目标时间点(24小时制)\n请设置脚本继续执行的具体时间\n示例\n小时4\n分钟30\n脚本会等待至凌晨4点30分\n\n小时",
"options": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23"
]
},
{
"name": "specifyMinutes",
"type": "select",
"label": "分钟",
"options": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23",
"24",
"25",
"26",
"27",
"28",
"29",
"30",
"31",
"32",
"33",
"34",
"35",
"36",
"37",
"38",
"39",
"40",
"41",
"42",
"43",
"44",
"45",
"46",
"47",
"48",
"49",
"50",
"51",
"52",
"53",
"54",
"55",
"56",
"57",
"58",
"59"
]
}
{
"name": "specifyHours",
"type": "select",
"label": "指定等待直到下一个 HHMM 的时0~23默认4",
"default": "4",
"options": [
"0","1","2","3","4","5","6","7","8","9","10","11","12",
"13","14","15","16","17","18","19","20","21","22","23"
]
},
{
"name": "specifyMinutes",
"type": "select",
"label": "指定等待直到下一个 HHMM 的分钟0~59默认0",
"default": "0",
"options": [
"0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19",
"20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37",
"38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55",
"56","57","58","59"
]
},
{
"name": "allowNextDay",
"type": "checkbox",
"label": "如果目标时间今天已过,是否等待到明天同一时间(默认:否)",
"default": false
}
]