From 4975a649a3ea996082eb464b0aa86fd12fcc922e Mon Sep 17 00:00:00 2001 From: IITII Date: Mon, 10 Apr 2023 22:40:39 +0800 Subject: [PATCH 1/2] site: add support for btschool --- btschool.har | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 btschool.har diff --git a/btschool.har b/btschool.har new file mode 100644 index 0000000..0f51e7a --- /dev/null +++ b/btschool.har @@ -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" + } + ] + } + } +] \ No newline at end of file From a385bb586b04ea64d70e78ed4ef8d401ef3b9432 Mon Sep 17 00:00:00 2001 From: IITII Date: Tue, 11 Apr 2023 10:37:09 +0800 Subject: [PATCH 2/2] site: add btschool --- tpls_history.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tpls_history.json b/tpls_history.json index e859e30..0c17dc0 100644 --- a/tpls_history.json +++ b/tpls_history.json @@ -2520,6 +2520,18 @@ "date": "2023-04-10 21:20:00", "version": "20230410", "commenturl": "https://github.com/qiandao-today/templates/issues/315" + }, + "btschool": { + "name": "btschool 签到_保号", + "author": "IITII", + "url": "https://raw.githubusercontent.com/qiandao-today/templates/master/btschool.har", + "update": false, + "comments": "使用详情看评论区", + "filename": "btschool.har", + "content": "", + "date": "2023-04-10 22:20:00", + "version": "20230410", + "commenturl": "https://github.com/qiandao-today/templates/issues/316" } } }