forked from qd-today/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
switch520.har
1 lines (1 loc) · 3.85 KB
/
switch520.har
1
[{"comment":"登录","request":{"method":"POST","url":"https://switch520.com/wp-admin/admin-ajax.php","headers":[{"name":"Connection","value":"keep-alive"},{"name":"Accept","value":"*/*"},{"name":"Content-Type","value":"application/x-www-form-urlencoded; charset=UTF-8"},{"name":"X-Requested-With","value":"XMLHttpRequest"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"},{"name":"Origin","value":"https://switch520.com"},{"name":"Referer","value":"https://switch520.com/"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.9,en;q=0.8"}],"cookies":[],"data":"action=user_login&username={{username|urlencode}}&password={{password|urlencode}}","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\\\\u767b\\\\u5f55\\\\u6210\\\\u529f","from":"content"}],"failed_asserts":[{"re":"\\\\u7528\\\\u6237\\\\u540d\\\\u6216\\\\u5bc6\\\\u7801\\\\u9519\\\\u8bef","from":"content"},{"re":"\"status\":\"0\"","from":"content"}],"extract_variables":[]}},{"comment":"签到","request":{"method":"POST","url":"https://switch520.com/wp-admin/admin-ajax.php","headers":[{"name":"Connection","value":"keep-alive"},{"name":"Accept","value":"*/*"},{"name":"Content-Type","value":"application/x-www-form-urlencoded; charset=UTF-8"},{"name":"X-Requested-With","value":"XMLHttpRequest"},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"},{"name":"Origin","value":"https://switch520.com"},{"name":"Referer","value":"https://switch520.com/"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.9,en;q=0.8"}],"cookies":[],"data":"action=user_qiandao","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"msg","re":"\"msg\":\"(.+?)\"","from":"content"}]}},{"comment":"用户页,获取余额信息","request":{"method":"GET","url":"https://switch520.com/user?action=index","headers":[{"name":"Connection","value":"keep-alive"},{"name":"Cache-Control","value":"max-age=0"},{"name":"Upgrade-Insecure-Requests","value":"1"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"},{"name":"Referer","value":"https://switch520.com/user?action=vip"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.9,en;q=0.8"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"dqyy","re":"当前余额[\\w\\W]*<h3>(.+?)</h3>[\\w\\W]*已消费","from":"content"},{"name":"yxf","re":"已消费[\\w\\W]*<h3>(.+?)</h3>[\\w\\W]*佣金","from":"content"},{"name":"nickName","re":"author\">[\\w\\W]*<h4>(.+?)</h4>","from":"content"}]}},{"comment":"字符串替换","request":{"method":"GET","url":"api://util/string/replace?r=text&t=%C2%A0&p=%C2%A0&s=%E7%AD%BE%E5%88%B0%E4%BF%A1%E6%81%AF%EF%BC%9A%E3%80%90{{unicode(msg|default('签到成功'))|urlencode}}%E3%80%91%5Cr%5Cn%E7%94%A8%E6%88%B7%EF%BC%9A%E3%80%90{{nickName|urlencode}}%E3%80%91%20---%20%E5%BD%93%E5%89%8D%E4%BD%99%E9%A2%9D%EF%BC%9A%E3%80%90{{dqyy|urlencode}}%E3%80%91%E5%85%83%20---%20%E5%B7%B2%E6%B6%88%E8%B4%B9%E3%80%90{{yxf|urlencode}}%E3%80%91%E5%85%83","headers":[],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"__log__","re":".+","from":"content"}]}}]