templates/www.gycq.vip.har
github-actions[bot] 6ccbaf7cdd
Add HAR: www.gycq.vip (#895)
Co-authored-by: zhangminghao1989 <zhangminghao1989@users.noreply.github.com>
2025-03-09 08:11:30 +08:00

90 lines
2.7 KiB
JSON

[
{
"request": {
"method": "GET",
"url": "https://www.gycq.vip/home.php?mod=spacecp&ac=credit",
"headers": [
{
"name": ":method",
"value": "GET"
},
{
"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-HK;q=0.9,zh-TW;q=0.8,zh;q=0.7,en;q=0.6,en-GB;q=0.5,en-US;q=0.4"
},
{
"name": "cache-control",
"value": "max-age=0"
},
{
"name": "dnt",
"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 Edg/133.0.0.0"
},
{
"name": "Cookie\n",
"value": "{{cookie}}\n"
}
],
"cookies": []
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [
{
"re": "您需要先登录才能继续本操作",
"from": "content"
}
],
"extract_variables": [
{
"name": "log_value",
"re": "金币: </em>(\\d+?) &nbsp;",
"from": "content"
}
]
}
},
{
"comment": "生成日志",
"request": {
"method": "POST",
"url": "api://util/urldecode",
"headers": [],
"cookies": [],
"data": "content=您的金币为: {{log_value}} 枚"
},
"rule": {
"success_asserts": [
{
"re": "\"状态\": \"200\"",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "__log__",
"re": "\"转换后\": \"(.*)\"",
"from": "content"
}
]
}
}
]