mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-20 20:26:09 +00:00
site: add support for btschool
This commit is contained in:
parent
668c5ed10c
commit
4975a649a3
69
btschool.har
Normal file
69
btschool.har
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"comment": "",
|
||||||
|
"request": {
|
||||||
|
"method": "POST",
|
||||||
|
"url": "{{flaresolverr_url}}",
|
||||||
|
"headers": [
|
||||||
|
{
|
||||||
|
"name": "Content-Type",
|
||||||
|
"value": "application/json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"cookies": [],
|
||||||
|
"data": "{\n \"cmd\": \"request.get\",\n \"url\": \"https://pt.btschool.club/index.php?action=addbonus\",\n \"cookies\": [\n {\n \"name\": \"c_secure_login\",\n \"value\": \"{{c_secure_login}}\",\n \"domain\": \"pt.btschool.club\"\n },\n {\n \"name\": \"c_secure_pass\",\n \"value\": \"{{c_secure_pass}}\",\n \"domain\": \"pt.btschool.club\"\n },\n {\n \"name\": \"c_secure_uid\",\n \"value\": \"{{c_secure_uid}}\",\n \"domain\": \"pt.btschool.club\"\n }\n ],\n \"maxTimeout\": 60000\n}",
|
||||||
|
"mimeType": "application/json"
|
||||||
|
},
|
||||||
|
"rule": {
|
||||||
|
"success_asserts": [
|
||||||
|
{
|
||||||
|
"re": "200",
|
||||||
|
"from": "status"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"failed_asserts": [
|
||||||
|
{
|
||||||
|
"re": "你需要启用cookies才能登录或切换语言",
|
||||||
|
"from": "content"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"extract_variables": [
|
||||||
|
{
|
||||||
|
"name": "traffic",
|
||||||
|
"re": "\\\\u4e0a\\\\u4f20\\\\u91cf.*\\\\u5f53\\\\u524d\\\\u6d3b\\\\u52a8",
|
||||||
|
"from": "content"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"comment": "字符串替换",
|
||||||
|
"request": {
|
||||||
|
"method": "POST",
|
||||||
|
"url": "api://util/string/replace",
|
||||||
|
"headers": [],
|
||||||
|
"cookies": [],
|
||||||
|
"data": "r=text&p=当前活动&t=&s={{ unicode(traffic) | striptags }}"
|
||||||
|
},
|
||||||
|
"rule": {
|
||||||
|
"success_asserts": [
|
||||||
|
{
|
||||||
|
"re": "200",
|
||||||
|
"from": "status"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"re": "\"状态\": \"OK\"",
|
||||||
|
"from": "content"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"failed_asserts": [],
|
||||||
|
"extract_variables": [
|
||||||
|
{
|
||||||
|
"name": "__log__",
|
||||||
|
"re": ".*",
|
||||||
|
"from": "content"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user