ACG-Q / qd-templates

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

[账号] LittleSkin #10

Open ACG-Q opened 7 months ago

ACG-Q commented 7 months ago

HAR 模板名称

LittleSkin

作者信息

六记

模板备注及说明

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

HAR 文件名

[账号] LittleSkin.har

其他信息

优化了一下模板

HAR 模板内容

[{"comment":"获取登录所需的X-CSRF-TOKEN","request":{"method":"GET","url":"https://littleskin.cn/auth/login","headers":[{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"},{"name":"Referer","value":"https://littleskin.cn/auth/login"}],"cookies":[]},"rule":{"success_asserts":[],"failed_asserts":[],"extract_variables":[{"name":"csrfToken","re":"name=\"csrf-token\" content=\"(.*?)\">","from":"content"}]}},{"comment":"延迟1.5秒","request":{"method":"GET","url":"api://util/delay?seconds=1.5","headers":[],"cookies":[]},"rule":{"success_asserts":[],"failed_asserts":[],"extract_variables":[]}},{"comment":"登录","request":{"method":"POST","url":"https://littleskin.cn/auth/login","headers":[{"name":"Content-Type","value":"application/json"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"},{"name":"Referer","value":"https://littleskin.cn/auth/login"},{"name":"X-CSRF-TOKEN","value":"{{csrfToken}}"},{"name":"Origin","value":"https://littleskin.cn"},{"name":"Referer","value":"https://littleskin.cn/auth/login"}],"cookies":[],"data":"{\"identification\": \"{{username}}\",\"password\": \"{{password}}\",\"keep\": true}"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"msgForLogin","re":"message\":\"(.*?)\"","from":"content"}]}},{"comment":"[Unicode转中文] 解析登录信息","request":{"method":"GET","url":"api://util/unicode?content={{msgForLogin|urlencode}}","headers":[],"cookies":[]},"rule":{"success_asserts":[{"re":"登录成功","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"msgForLogin","re":"转换后\": \"(.*)\"","from":"content"}]}},{"comment":"延迟1.5秒","request":{"method":"GET","url":"api://util/delay?seconds=1.5","headers":[],"cookies":[]},"rule":{"success_asserts":[],"failed_asserts":[],"extract_variables":[]}},{"comment":"签到","request":{"method":"POST","url":"https://littleskin.cn/user/sign","headers":[{"name":"x-csrf-token","value":"{{csrfToken}}"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"},{"name":"content-type","value":"application/json"},{"name":"accept","value":"application/json"},{"name":"origin","value":"https://littleskin.cn"},{"name":"referer","value":"https://littleskin.cn/user"}],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"msgForSign","re":"message\":\"(.*?)\"","from":"content"},{"name":"score","re":"\"data\":{\"score\":(\\d+)}","from":"content"},{"name":"code","re":"\"code\":(\\d+)","from":"content"}]}},{"comment":"判断模块:签到成功","request":{"method":"GET","url":"{% if code == \"0\" %}","headers":[],"cookies":[]},"rule":{"success_asserts":[],"failed_asserts":[],"extract_variables":[]}},{"comment":"打印日志","request":{"method":"GET","url":"api://util/unicode?content=%E6%81%AD%E5%96%9C%E4%BD%A0{{msgForSign|urlencode}}%EF%BC%8C%E7%9B%AE%E5%89%8D%E4%BD%A0%E7%9A%84%E7%A7%AF%E5%88%86%E6%98%AF{{score|urlencode}}","headers":[],"cookies":[],"data":""},"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":[{"re":"undefined","from":"status"}],"failed_asserts":[],"extract_variables":[]}},{"comment":"打印日志","request":{"method":"GET","url":"api://util/unicode?content=%E9%87%8D%E5%A4%8D%E7%AD%BE%E5%88%B0%E6%88%96%E8%80%85%E7%AD%BE%E5%88%B0%E5%A4%B1%E8%B4%A5","headers":[],"cookies":[],"data":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"__log__","re":"\"转换后\": \"(.*)\"","from":"content"}]}},{"comment":"判断模块结束","request":{"method":"GET","url":"{% endif %}","headers":[],"cookies":[]},"rule":{"success_asserts":[{"re":"undefined","from":"status"}],"failed_asserts":[],"extract_variables":[]}}]