ACG-Q / qd-templates

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

[账号] 18acg #12

Open ACG-Q opened 7 months ago

ACG-Q commented 7 months ago

HAR 模板名称

18acg

作者信息

六记

模板备注及说明

模板网站: https://18acg.club/ 模板功能: 每日自动签到,积攒积分 需要填写: 账号 和 密码

HAR 文件名

[账号] 18acg.har

其他信息

No response

HAR 模板内容

[{"comment":"登录","request":{"method":"POST","url":"https://18acg.club/wp-json/jwt-auth/v1/token","headers":[{"name":"origin","value":"https://18acg.club"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"}],"cookies":[],"data":"username={{username}}&password={{password}}"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"token","re":"\"token\":\"(.*?)\"","from":"content"},{"name":"name","re":"\"name\":\"(.*?)\"","from":"content"},{"name":"id","re":"\"id\":\"(.*?)\"","from":"content"}]}},{"comment":"[Unicode转中文] 解析登录信息","request":{"method":"GET","url":"api://util/unicode?content={{name|urlencode}}","headers":[],"cookies":[],"data":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"name","re":"\"转换后\":\"(.*)\"","from":"content"}]}},{"comment":"签到第一步","request":{"method":"POST","url":"https://18acg.club/wp-json/b2/v1/getUserMission","headers":[{"name":"accept","value":"application/json, text/plain, */*"},{"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"},{"name":"authorization","value":"Bearer {{token}}"},{"name":"origin","value":"https://18acg.club"},{"name":"referer","value":"https://18acg.club/task"},{"name":"sec-ch-ua","value":"\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"102\", \"Google Chrome\";v=\"102\""},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"}],"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://18acg.club/wp-json/b2/v1/userMission","headers":[{"name":"accept","value":"application/json, text/plain, */*"},{"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"},{"name":"authorization","value":"Bearer {{token}}"},{"name":"origin","value":"https://18acg.club"},{"name":"referer","value":"https://18acg.club/task"},{"name":"sec-ch-ua","value":"\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"102\", \"Google Chrome\";v=\"102\""},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"}],"cookies":[]},"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 not credit is None %}","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":[]}}]