mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-05 22:31:32 +00:00
362 lines
11 KiB
JSON
362 lines
11 KiB
JSON
[
|
||
{
|
||
"comment": "",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://legado.cn/k_misign-sign.html",
|
||
"headers": [
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://legado.cn/k_misign-sign.html"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
|
||
},
|
||
{
|
||
"name": "Cookie",
|
||
"value": "{{cookie}}"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "立即注册",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "formhash",
|
||
"re": "name=\"formhash\" value=\"(.*)\"",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "uid",
|
||
"re": "discuz_uid = '(.*?)'",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "name",
|
||
"re": "class=\"author\">(.*)</a>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "location",
|
||
"re": "window.location=\"(.+?)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断条件成立",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% if location %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://legado.cn/{{location}}",
|
||
"headers": [
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://legado.cn/k_misign-sign.html"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "302",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://legado.cn/k_misign-sign.html",
|
||
"headers": [
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://legado.cn/k_misign-sign.html"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "立即注册",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "formhash",
|
||
"re": "name=\"formhash\" value=\"(.*)\"",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "uid",
|
||
"re": "discuz_uid = '(.*?)'",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "name",
|
||
"re": "class=\"author\">(.*)</a>",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "判断块结束",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "{% endif %}",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": []
|
||
}
|
||
},
|
||
{
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://legado.cn/plugin.php?id=k_misign%3Asign&operation=qiandao&formhash={{formhash}}&format=empty&inajax=1&ajaxtarget=JD_sign",
|
||
"headers": [
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://legado.cn/k_misign-sign.html"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "已经被系统拒绝",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "您所在用户组不允许使用",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "msg",
|
||
"re": "<!\\[CDATA\\[(.*)]]>",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://legado.cn/k_misign-sign.html",
|
||
"headers": [
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://legado.cn/k_misign-sign.html"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "立即注册",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "lxqd",
|
||
"re": "id=\"lxdays\" value=\"(\\d+)\">",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "qddj",
|
||
"re": "id=\"lxlevel\" value=\"(\\d+)\">",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "jfjl",
|
||
"re": "id=\"lxreward\" value=\"(\\d+)\">",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "zts",
|
||
"re": "id=\"lxtdays\" value=\"(\\d+)\">",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "qdpm",
|
||
"re": "您的签到排名:(\\d+)",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://legado.cn/space-uid-{{uid}}.html",
|
||
"headers": [
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://legado.cn/k_misign-sign.html"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
|
||
}
|
||
],
|
||
"cookies": []
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "立即注册",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "插件不存在或已关闭",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "yhz",
|
||
"re": "target=\"_blank\">(.*)</a></span>",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "sj",
|
||
"re": "tip=\"(.*?)\">",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "jy",
|
||
"re": "经验</em>(\\d+)",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "ydb",
|
||
"re": "阅读币</em>(\\d+)",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "gx",
|
||
"re": "贡献</em>(\\d+)",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "Unicode转换",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/unicode",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "content={{name}},你已连续签到 {{lxqd}} 天\\r\\n 签到排名:{{qdpm}},签到等级:Lv.{{qddj}}\\r\\n 积分奖励:{{jfjl}},总天数:{{zts}}\\r\\n 经验:{{jy}},阅读币:{{ydb}},贡献:{{gx}}\\r\\n 用户组:{{yhz}},{{sj}}"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"200\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "__log__",
|
||
"re": "\"转换后\": \"(.*)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
] |