mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-05 22:28:23 +00:00
162 lines
4.8 KiB
JSON
162 lines
4.8 KiB
JSON
[
|
|
{
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://keylol.com/",
|
|
"headers": [
|
|
{
|
|
"name": "Host",
|
|
"value": "keylol.com"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
|
|
},
|
|
{
|
|
"name": "Accept",
|
|
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
|
|
},
|
|
{
|
|
"name": "Accept-Language",
|
|
"value": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2"
|
|
},
|
|
{
|
|
"name": "Accept-Encoding",
|
|
"value": "gzip, deflate, br"
|
|
},
|
|
{
|
|
"name": "Upgrade-Insecure-Requests",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"name": "DNT",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"name": "Connection",
|
|
"value": "keep-alive"
|
|
},
|
|
{
|
|
"name": "Cookie",
|
|
"value": "{{cookie}}"
|
|
},
|
|
{
|
|
"name": "Cache-Control",
|
|
"value": "max-age=0"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": "",
|
|
"mimeType": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": []
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://keylol.com/home.php?mod=spacecp&ac=credit",
|
|
"headers": [
|
|
{
|
|
"name": "Host",
|
|
"value": "keylol.com"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
|
|
},
|
|
{
|
|
"name": "Accept",
|
|
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
|
|
},
|
|
{
|
|
"name": "Accept-Language",
|
|
"value": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2"
|
|
},
|
|
{
|
|
"name": "Accept-Encoding",
|
|
"value": "gzip, deflate, br"
|
|
},
|
|
{
|
|
"name": "Upgrade-Insecure-Requests",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"name": "DNT",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"name": "Connection",
|
|
"value": "keep-alive"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": "",
|
|
"mimeType": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [
|
|
{
|
|
"re": "您需要先登录才能继续本操作",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"extract_variables": [
|
|
{
|
|
"re": "体力: </em>(.+?)点",
|
|
"from": "content",
|
|
"name": "log_value0"
|
|
},
|
|
{
|
|
"re": "蒸汽: </em>(.+?)克",
|
|
"from": "content",
|
|
"name": "log_value"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "生成日志",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "api://util/urldecode",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "content=蒸汽: {{log_value}} 克 体力: {{log_value0}} 点"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
},
|
|
{
|
|
"re": "\"状态\": \"200\"",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "__log__",
|
|
"re": "\"转换后\": \"(.*)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |