mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-04 20:23:05 +00:00
127 lines
4.0 KiB
JSON
127 lines
4.0 KiB
JSON
[
|
|
{
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://{{domain}}/attendance.php",
|
|
"headers": [
|
|
{
|
|
"name": "Accept",
|
|
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
|
|
},
|
|
{
|
|
"name": "Accept-Encoding",
|
|
"value": "gzip, deflate, br, zstd"
|
|
},
|
|
{
|
|
"name": "Accept-Language",
|
|
"value": "zh-CN,zh;q=0.9,en;q=0.8"
|
|
},
|
|
{
|
|
"name": "avccept",
|
|
"value": "keep-alive"
|
|
},
|
|
{
|
|
"name": "Referer",
|
|
"value": "https://{{domain}}/index.php"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Dest",
|
|
"value": "document"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Mode",
|
|
"value": "navigate"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-Site",
|
|
"value": "same-origin"
|
|
},
|
|
{
|
|
"name": "Sec-Fetch-User",
|
|
"value": "?1"
|
|
},
|
|
{
|
|
"name": "Upgrade-Insecure-Requests",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua",
|
|
"value": "\\\"Not(A:Brand\\\";v=\\\"99\\\", \\\"Google Chrome\\\";v=\\\"133\\\", \\\"Chromium\\\";v=\\\"133\\\""
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-mobile",
|
|
"value": "?0"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-platform",
|
|
"value": "\\\"Windows\\\""
|
|
},
|
|
{
|
|
"name": "cookie",
|
|
"value": "{{cookie}}"
|
|
}
|
|
],
|
|
"cookies": []
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [
|
|
{
|
|
"re": "关闭维护",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"extract_variables": [
|
|
{
|
|
"name": "recheck_cnt",
|
|
"re": "第[\\s\\S]+今日签到排名:<b>\\d+</b> / <b>\\d+</b>",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "traffic",
|
|
"re": "分享率[:][\\s\\S]+当前活动",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "字符串替换",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "api://util/string/replace",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "r=text&p=当前活动&t=&s={{domain}}: {{traffic | striptags}} {{regex_replace(recheck_cnt | striptags, \"点击[\\s\\S]+目前\", \"\")}}"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
},
|
|
{
|
|
"re": "\"状态\": \"OK\"",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "__log__",
|
|
"re": ".*",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |