forked from qd-today/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
invites.fun.har
1 lines (1 loc) · 2.38 KB
/
invites.fun.har
1
[{"comment":"获取CSRF","request":{"method":"GET","url":"https://invites.fun/","headers":[{"name":"Cookie","value":"{{cookie}}"}],"cookies":[],"data":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"csrf","re":"\"csrfToken\":\"(.+?)\"}","from":"content"},{"name":"uid","re":"\"userId\":(\\d+),","from":"content"}]}},{"comment":"签到","request":{"method":"POST","url":"https://invites.fun/api/users/{{uid}}","headers":[{"name":"Accept","value":"*/*"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"},{"name":"Connection","value":"keep-alive"},{"name":"Content-Type","value":"application/json; charset=UTF-8"},{"name":"Cookie","value":"{{cookie}}"},{"name":"DNT","value":"1"},{"name":"Origin","value":"https://invites.fun"},{"name":"Referer","value":"https://invites.fun/"},{"name":"Sec-Fetch-Dest","value":"empty"},{"name":"Sec-Fetch-Mode","value":"cors"},{"name":"Sec-Fetch-Site","value":"same-origin"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.44"},{"name":"X-CSRF-Token","value":"{{csrf}}"},{"name":"X-HTTP-Method-Override","value":"PATCH"},{"name":"sec-ch-ua","value":"\"Microsoft Edge\";v=\"111\", \"Not(A:Brand\";v=\"8\", \"Chromium\";v=\"111\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""}],"cookies":[],"data":"{\"data\":{\"type\":\"users\",\"attributes\":{\"canCheckin\":false,\"totalContinuousCheckIn\":5},\"id\":\"{{uid}}\"}}","mimeType":"application/json; charset=UTF-8"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"days","re":"\"totalContinuousCheckIn\":(\\d+),","from":"content"},{"name":"money","re":"\"money\":(\\d+),","from":"content"}]}},{"comment":"字符串替换","request":{"method":"GET","url":"api://util/string/replace?t=%E6%80%BB%E7%AD%BE%E5%88%B0%E5%A4%A9%E6%95%B0%EF%BC%9A{{days|urlencode}}%EF%BC%8C%E5%89%A9%E4%BD%99%E9%AD%94%E5%8A%9B%EF%BC%9A{{money|urlencode}}","headers":[],"cookies":[],"data":""},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"OK\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"__log__","re":"\"处理后字符串\": \"(.*)\"","from":"content"}]}}]