mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-04 20:21:51 +00:00
132 lines
4.3 KiB
JSON
132 lines
4.3 KiB
JSON
[
|
|
{
|
|
"comment": "",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://www.gamegamept.com/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-language",
|
|
"value": "zh-CN,zh;q=0.9,en;q=0.8"
|
|
},
|
|
{
|
|
"name": "cache-control",
|
|
"value": "no-cache"
|
|
},
|
|
{
|
|
"name": "cookie",
|
|
"value": "{{cookie}}"
|
|
},
|
|
{
|
|
"name": "pragma",
|
|
"value": "no-cache"
|
|
},
|
|
{
|
|
"name": "priority",
|
|
"value": "u=0, i"
|
|
},
|
|
{
|
|
"name": "referer",
|
|
"value": "https://www.gamegamept.com/forums.php"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua",
|
|
"value": "\"Google Chrome\";v=\"131\", \"Chromium\";v=\"131\", \"Not_A Brand\";v=\"24\""
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-mobile",
|
|
"value": "?0"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-platform",
|
|
"value": "\"macOS\""
|
|
},
|
|
{
|
|
"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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
|
|
}
|
|
],
|
|
"cookies": []
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": ".*?(签到成功)",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "all_times",
|
|
"re": ".*?这是您的第.*?(\\d+)",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "c_times",
|
|
"re": ".*?已连续签到.*?(\\d+)",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "moli",
|
|
"re": "本次签到获得.*?(\\d+)",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "URL解码",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "api://util/urldecode?content=%E8%BF%99%E6%98%AF%E6%82%A8%E7%9A%84%E7%AC%AC%20{{all_times|urlencode}}%20%E6%AC%A1%E7%AD%BE%E5%88%B0%EF%BC%8C%E5%B7%B2%E8%BF%9E%E7%BB%AD%E7%AD%BE%E5%88%B0%20{{c_times|urlencode}}%20%E5%A4%A9%EF%BC%8C%E6%9C%AC%E6%AC%A1%E7%AD%BE%E5%88%B0%E8%8E%B7%E5%BE%97%20{{moli|urlencode}}%20%E4%B8%AA%E9%AD%94%E5%8A%9B%E5%80%BC%0A",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "unquote_plus=false&encoding=utf-8&content="
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
},
|
|
{
|
|
"re": "\"状态\":\"200\"",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "__log__",
|
|
"re": "\"转换后\":\"(.+)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |