mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-04 20:23:05 +00:00
144 lines
4.4 KiB
JSON
144 lines
4.4 KiB
JSON
[
|
|
{
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "https://caigamer.com/sg_sign-list_today.htm",
|
|
"headers": [
|
|
{
|
|
"name": "content-type",
|
|
"value": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
},
|
|
{
|
|
"name": "origin",
|
|
"value": "https://caigamer.com"
|
|
},
|
|
{
|
|
"name": "referer",
|
|
"value": "https://caigamer.com/"
|
|
},
|
|
{
|
|
"name": "user-agent",
|
|
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0"
|
|
},
|
|
{
|
|
"name": "x-requested-with",
|
|
"value": "XMLHttpRequest"
|
|
},
|
|
{
|
|
"name": "cookie",
|
|
"value": "{{cookie}}"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": "action=check",
|
|
"mimeType": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [
|
|
{
|
|
"re": "请登录后再签到",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"extract_variables": [
|
|
{
|
|
"name": "msg",
|
|
"re": "\"message\": \"(.+?)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://caigamer.com/my.htm",
|
|
"headers": [
|
|
{
|
|
"name": "referer",
|
|
"value": "https://caigamer.com/"
|
|
},
|
|
{
|
|
"name": "user-agent",
|
|
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": "action=check",
|
|
"mimeType": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "yhz",
|
|
"re": "用户组:\\n.*\\n(.+)<br>",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "fl",
|
|
"re": "肥料:<data>(.+)</data></p>",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "nl",
|
|
"re": "能量</p>\\n(.+)",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "dq",
|
|
"re": "点券</p>\\n(.+)",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"re": "<meta property=\"og:title\" content=\"(.+)\">",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "Unicode转换",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "api://util/unicode",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "html_unescape=false&content=用户名:{{name}}\\r\\n 用户组:{{yhz}},肥料:{{fl}} \\r\\n 能量:{{nl | striptags}},点券:{{dq | striptags}} \\r\\n 签到结果:{{msg}}"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
},
|
|
{
|
|
"re": "\"状态\": \"200\"",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "__log__",
|
|
"re": "\"转换后\": \"(.*)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |