templates/菜玩社区.har
github-actions[bot] b5f844a402
Add HAR: 菜玩社区 (#859)
Co-authored-by: chen8945 <chen8945@users.noreply.github.com>
2025-01-25 12:59:17 +08:00

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"
}
]
}
}
]