Merge pull request #318 from IITII/master

har json 压缩
This commit is contained in:
chen8945 2023-04-12 19:50:29 +08:00 committed by GitHub
commit dbba8c76e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 72 deletions

View File

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

View File

@ -2526,11 +2526,11 @@
"author": "IITII", "author": "IITII",
"url": "https://raw.githubusercontent.com/qiandao-today/templates/master/btschool.har", "url": "https://raw.githubusercontent.com/qiandao-today/templates/master/btschool.har",
"update": false, "update": false,
"comments": "使用详情看评论区", "comments": "c_secure_uid, c_secure_pass, c_secure_login 自行从 cookies 里面提取<br>flaresolverr 地址填写格式: http://{ip}:{port}/v1, 比如 http://localhost:8191/v1<br>具体看评论区",
"filename": "btschool.har", "filename": "btschool.har",
"content": "", "content": "",
"date": "2023-04-10 22:20:00", "date": "2023-04-12 12:20:00",
"version": "20230410", "version": "20230412",
"commenturl": "https://github.com/qiandao-today/templates/issues/316" "commenturl": "https://github.com/qiandao-today/templates/issues/316"
} }
} }