forked from wjf0214/qd-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
一加社区抽奖.har
1 lines (1 loc) · 3.13 KB
/
一加社区抽奖.har
1
[{"comment":"Unicode转换","request":{"method":"POST","url":"api://util/unicode","headers":[],"cookies":[],"data":"content={{random(0,1,n)}}"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"nums","re":"\"转换后\": \"0.(.*)\"","from":"content"},{"name":"log","re":"","from":"content"},{"name":"num","re":"","from":"content"},{"name":"x","re":"","from":"content"}]}},{"comment":"循环开始","request":{"method":"GET","url":"{% for num in nums %}","headers":[],"cookies":[],"data":""},"rule":{"success_asserts":[],"failed_asserts":[],"extract_variables":[]}},{"comment":"抽奖","request":{"method":"POST","url":"https://www.oneplusbbs.com/plugin.php?id=choujiang&do=draw","headers":[{"name":"Connection","value":"keep-alive"},{"name":"Pragma","value":"no-cache"},{"name":"Cache-Control","value":"no-cache"},{"name":"Accept","value":"application/json, text/javascript, */*; q=0.01"},{"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/99.0.4844.51 Safari/537.36"},{"name":"Origin","value":"https://www.oneplusbbs.com"},{"name":"Referer","value":"https://www.oneplusbbs.com/plugin-choujiang.html"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.9,en;q=0.8"},{"name":"Cookie","value":"{{cookie}}"}],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[{"re":"\\\\u672a\\\\u767b\\\\u5f55","from":"content"}],"extract_variables":[{"name":"msg","re":"\"msg\":\"(.+?)\"","from":"content"}]}},{"comment":"当前次数","request":{"method":"POST","url":"api://util/unicode","headers":[],"cookies":[],"data":"content={{add(x,1)|int}}"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"x","re":"\"转换后\": \"(.+?)\"","from":"content"}]}},{"comment":"当前抽奖日志","request":{"method":"POST","url":"api://util/unicode","headers":[],"cookies":[],"data":"content={{log}}\\r\\n第【{{x}}】次抽奖,抽奖结果为【{{msg}}】"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"log","re":"\"转换后\": \"(.*)\"","from":"content"}]}},{"comment":"延时5秒","request":{"method":"GET","url":"api://util/delay/5","headers":[],"cookies":[],"data":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[]}},{"comment":"循环块结束","request":{"method":"GET","url":"{% endfor %}","headers":[],"cookies":[],"data":""},"rule":{"success_asserts":[],"failed_asserts":[],"extract_variables":[]}},{"comment":"日志","request":{"method":"POST","url":"api://util/unicode","headers":[],"cookies":[],"data":"content={{log}}"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"__log__","re":"\"转换后\": \"(.*)\"","from":"content"}]}}]