-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: sunnywangzi <[email protected]>
- Loading branch information
1 parent
d369e92
commit ef212f8
Showing
2 changed files
with
254 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,242 @@ | ||
[ | ||
{ | ||
"comment": "登入", | ||
"request": { | ||
"method": "GET", | ||
"url": "https://api.locyanfrp.cn/User/DoLogin?username={{username|urlencode}}&password={{password|urlencode}}", | ||
"headers": [ | ||
{ | ||
"name": ":authority", | ||
"value": "api.locyanfrp.cn" | ||
}, | ||
{ | ||
"name": ":method", | ||
"value": "GET" | ||
}, | ||
{ | ||
"name": ":path", | ||
"value": "/User/DoLogin?username={{username|urlencode}}&password={{password|urlencode}}" | ||
}, | ||
{ | ||
"name": ":scheme", | ||
"value": "https" | ||
}, | ||
{ | ||
"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,en-GB;q=0.7,en-US;q=0.6" | ||
}, | ||
{ | ||
"name": "dnt", | ||
"value": "1" | ||
}, | ||
{ | ||
"name": "origin", | ||
"value": "https://preview.locyanfrp.cn" | ||
}, | ||
{ | ||
"name": "referer", | ||
"value": "https://preview.locyanfrp.cn/" | ||
}, | ||
{ | ||
"name": "sec-ch-ua", | ||
"value": "\"Not/A)Brand\";v=\"99\", \"Microsoft Edge\";v=\"115\", \"Chromium\";v=\"115\"" | ||
}, | ||
{ | ||
"name": "sec-ch-ua-mobile", | ||
"value": "?0" | ||
}, | ||
{ | ||
"name": "sec-ch-ua-platform", | ||
"value": "\"Windows\"" | ||
}, | ||
{ | ||
"name": "sec-fetch-dest", | ||
"value": "empty" | ||
}, | ||
{ | ||
"name": "sec-fetch-mode", | ||
"value": "cors" | ||
}, | ||
{ | ||
"name": "sec-fetch-site", | ||
"value": "same-site" | ||
}, | ||
{ | ||
"name": "sec-gpc", | ||
"value": "1" | ||
}, | ||
{ | ||
"name": "user-agent", | ||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.203" | ||
} | ||
], | ||
"cookies": [] | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
}, | ||
{ | ||
"re": "登录成功", | ||
"from": "content" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [ | ||
{ | ||
"name": "token", | ||
"re": "\"token\":\"(.+?)\",", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"comment": "签到", | ||
"request": { | ||
"method": "POST", | ||
"url": "https://api.locyanfrp.cn/User/DoSign", | ||
"headers": [ | ||
{ | ||
"name": ":authority", | ||
"value": "api.locyanfrp.cn" | ||
}, | ||
{ | ||
"name": ":method", | ||
"value": "POST" | ||
}, | ||
{ | ||
"name": ":path", | ||
"value": "/User/DoSign" | ||
}, | ||
{ | ||
"name": ":scheme", | ||
"value": "https" | ||
}, | ||
{ | ||
"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,en-GB;q=0.7,en-US;q=0.6" | ||
}, | ||
{ | ||
"name": "authorization", | ||
"value": "Bearer ef3e3ce02f10158056bc548c2d7651e4" | ||
}, | ||
{ | ||
"name": "content-type", | ||
"value": "application/x-www-form-urlencoded" | ||
}, | ||
{ | ||
"name": "dnt", | ||
"value": "1" | ||
}, | ||
{ | ||
"name": "origin", | ||
"value": "https://preview.locyanfrp.cn" | ||
}, | ||
{ | ||
"name": "referer", | ||
"value": "https://preview.locyanfrp.cn/" | ||
}, | ||
{ | ||
"name": "sec-ch-ua", | ||
"value": "\"Not/A)Brand\";v=\"99\", \"Microsoft Edge\";v=\"115\", \"Chromium\";v=\"115\"" | ||
}, | ||
{ | ||
"name": "sec-ch-ua-mobile", | ||
"value": "?0" | ||
}, | ||
{ | ||
"name": "sec-ch-ua-platform", | ||
"value": "\"Windows\"" | ||
}, | ||
{ | ||
"name": "sec-fetch-dest", | ||
"value": "empty" | ||
}, | ||
{ | ||
"name": "sec-fetch-mode", | ||
"value": "cors" | ||
}, | ||
{ | ||
"name": "sec-fetch-site", | ||
"value": "same-site" | ||
}, | ||
{ | ||
"name": "sec-gpc", | ||
"value": "1" | ||
}, | ||
{ | ||
"name": "user-agent", | ||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.203" | ||
} | ||
], | ||
"cookies": [], | ||
"data": "token={{token|urlencode}}", | ||
"mimeType": "application/x-www-form-urlencoded" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [ | ||
{ | ||
"name": "message", | ||
"re": "\"message\":\"(.+?)\"", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"comment": "Unicode转换", | ||
"request": { | ||
"method": "POST", | ||
"url": "api://util/unicode", | ||
"headers": [], | ||
"cookies": [], | ||
"data": "content={{message}}" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
}, | ||
{ | ||
"re": "\"状态\": \"200\"", | ||
"from": "content" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [ | ||
{ | ||
"name": "__log__", | ||
"re": "\"转换后\": \"(.*)\"", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters