ACG-Q / qd-templates

基于开源新版 QD 框架站发布的公共har模板库
1 stars 0 forks source link

[Cookie] 通杀B2主题签到 #22

Open ACG-Q opened 2 months ago

ACG-Q commented 2 months ago

HAR 模板名称

通杀B2主题签到

作者信息

六记

模板备注及说明

  1. 查看是否为b2主题

    首页源代码搜索"themes/b2" 看看是否存在

  2. 复制域名

    例如: 致美化 - 视觉美化研究平台 的域名是zhutix.com

  3. 复制所需Cookieb2_token

image

HAR 文件名

[Cookie] 通杀B2主题签到.har

其他信息

记住只支持B2主题的原生签到

HAR 模板内容

[{"comment":"签到第一步","request":{"method":"POST","url":"https://{{domain}}/wp-json/b2/v1/getUserMission","headers":[{"name":"Authorization","value":"Bearer {{token}}"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"},{"name":"Content-Type","value":"application/x-www-form-urlencoded"},{"name":"Accept","value":"application/json, text/plain, */*"},{"name":"Origin","value":"https://www.titizz.com"},{"name":"Referer","value":"https://www.titizz.com/document/82.html"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.9,en;q=0.8,ko;q=0.7"}],"cookies":[],"data":"count=10&paged=1","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[]}},{"comment":"签到第二步","request":{"method":"POST","url":"https://{{domain}}/wp-json/b2/v1/userMission","headers":[{"name":"Connection","value":"keep-alive"},{"name":"Accept","value":"application/json, text/plain, */*"},{"name":"DNT","value":"1"},{"name":"Authorization","value":"Bearer {{token}}"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"},{"name":"Origin","value":"https://www.titizz.com"},{"name":"Referer","value":"https://www.titizz.com/document/82.html"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.9,en;q=0.8,ko;q=0.7"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"result","re":"\"(.*)\"","from":"content"},{"name":"date","re":"\"date\":\"(.*?)\",","from":"content"},{"name":"credit","re":"\"credit\":\"?(\\d+)\"?,","from":"content"}]}},{"comment":"判断模块:签到成功","request":{"method":"GET","url":"{% if credit %}","headers":[],"cookies":[]},"rule":{"success_asserts":[],"failed_asserts":[],"extract_variables":[]}},{"request":{"method":"POST","url":"api://util/urldecode","headers":[],"cookies":[],"data":"content=恭喜你于{{date}}签到成功,获取{{credit}}枚"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"__log__","re":"\"转换后\": \"(.*)\"","from":"content"}]}},{"comment":"判断模块 else","request":{"method":"GET","url":"{% else %}","headers":[],"cookies":[]},"rule":{"success_asserts":[],"failed_asserts":[],"extract_variables":[]}},{"comment":"判断模块: 是否为重复签到","request":{"method":"GET","url":"{% if int(result) > 0 %}","headers":[],"cookies":[]},"rule":{"success_asserts":[],"failed_asserts":[],"extract_variables":[]}},{"request":{"method":"POST","url":"api://util/urldecode","headers":[],"cookies":[],"data":"content=重复签到"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"__log__","re":"\"转换后\": \"(.*)\"","from":"content"}]}},{"comment":"判断模块 else","request":{"method":"GET","url":"{% else %}","headers":[],"cookies":[]},"rule":{"success_asserts":[],"failed_asserts":[],"extract_variables":[]}},{"request":{"method":"POST","url":"api://util/urldecode","headers":[],"cookies":[],"data":"content=签到失败"},"rule":{"success_asserts":[],"failed_asserts":[{"re":"200","from":"status"}],"extract_variables":[{"name":"__log__","re":"\"转换后\": \"(.*)\"","from":"content"}]}},{"comment":"判断模块结束","request":{"method":"GET","url":"{% endif %}","headers":[],"cookies":[]},"rule":{"success_asserts":[],"failed_asserts":[],"extract_variables":[]}}]