From 45bff2ff211af8722666c0f587f2025506b51f65 Mon Sep 17 00:00:00 2001 From: IITII Date: Tue, 11 Apr 2023 11:26:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?btschool:=20=E5=8E=8B=E7=BC=A9=20JSON?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- btschool.har | 70 +--------------------------------------------------- 1 file changed, 1 insertion(+), 69 deletions(-) diff --git a/btschool.har b/btschool.har index 0f51e7a..0fedc84 100644 --- a/btschool.har +++ b/btschool.har @@ -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" - } - ] - } - } -] \ No newline at end of file +[{"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 07ce2c636ee59c6f541a591915647fe858ed96e8 Mon Sep 17 00:00:00 2001 From: IITII Date: Wed, 12 Apr 2023 17:56:15 +0800 Subject: [PATCH 2/2] docs: update btschool comments --- tpls_history.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tpls_history.json b/tpls_history.json index 07204e5..f856529 100644 --- a/tpls_history.json +++ b/tpls_history.json @@ -2526,11 +2526,11 @@ "author": "IITII", "url": "https://raw.githubusercontent.com/qiandao-today/templates/master/btschool.har", "update": false, - "comments": "使用详情看评论区", + "comments": "c_secure_uid, c_secure_pass, c_secure_login 自行从 cookies 里面提取
flaresolverr 地址填写格式: http://{ip}:{port}/v1, 比如 http://localhost:8191/v1
具体看评论区", "filename": "btschool.har", "content": "", - "date": "2023-04-10 22:20:00", - "version": "20230410", + "date": "2023-04-12 12:20:00", + "version": "20230412", "commenturl": "https://github.com/qiandao-today/templates/issues/316" } }