Add HAR: 菜玩社区 (#859)

Co-authored-by: chen8945 <chen8945@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2025-01-25 12:59:17 +08:00 committed by GitHub
parent 87d51bd186
commit b5f844a402
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 156 additions and 0 deletions

View File

@ -3864,6 +3864,18 @@
"date": "2025-01-22 09:40:19",
"version": "20250122",
"commenturl": "https://github.com/qd-today/templates/issues/846"
},
"菜玩社区": {
"name": "菜玩社区",
"author": "chen8945",
"url": "https://raw.githubusercontent.com/qd-today/templates/master/菜玩社区.har",
"update": false,
"comments": "Cookie<br>https://caigamer.com/",
"filename": "菜玩社区.har",
"content": "W3sicmVxdWVzdCI6IHsibWV0aG9kIjogIlBPU1QiLCAidXJsIjogImh0dHBzOi8vY2FpZ2FtZXIuY29tL3NnX3NpZ24tbGlzdF90b2RheS5odG0iLCAiaGVhZGVycyI6IFt7Im5hbWUiOiAiY29udGVudC10eXBlIiwgInZhbHVlIjogImFwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZDsgY2hhcnNldD1VVEYtOCJ9LCB7Im5hbWUiOiAib3JpZ2luIiwgInZhbHVlIjogImh0dHBzOi8vY2FpZ2FtZXIuY29tIn0sIHsibmFtZSI6ICJyZWZlcmVyIiwgInZhbHVlIjogImh0dHBzOi8vY2FpZ2FtZXIuY29tLyJ9LCB7Im5hbWUiOiAidXNlci1hZ2VudCIsICJ2YWx1ZSI6ICJNb3ppbGxhLzUuMCAoV2luZG93cyBOVCAxMC4wOyBXaW42NDsgeDY0KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBDaHJvbWUvMTMyLjAuMC4wIFNhZmFyaS81MzcuMzYgRWRnLzEzMi4wLjAuMCJ9LCB7Im5hbWUiOiAieC1yZXF1ZXN0ZWQtd2l0aCIsICJ2YWx1ZSI6ICJYTUxIdHRwUmVxdWVzdCJ9LCB7Im5hbWUiOiAi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yb20iOiAiY29udGVudCJ9XSwgImZhaWxlZF9hc3NlcnRzIjogW10sICJleHRyYWN0X3ZhcmlhYmxlcyI6IFt7Im5hbWUiOiAiX19sb2dfXyIsICJyZSI6ICJcIui9rOaNouWQjlwiOiBcIiguKilcIiIsICJmcm9tIjogImNvbnRlbnQifV19fV0=",
"date": "2025-01-25 12:58:17",
"version": "20250125",
"commenturl": "https://github.com/qd-today/templates/issues/858"
}
}
}

144
菜玩社区.har Normal file
View File

@ -0,0 +1,144 @@
[
{
"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"
}
]
}
}
]