-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
867d660
commit 205f759
Showing
2 changed files
with
283 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
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,271 @@ | ||
[ | ||
{ | ||
"comment": "账号密码登录", | ||
"request": { | ||
"method": "POST", | ||
"url": "https://ai1foo.com/api/v1/user/login", | ||
"headers": [ | ||
{ | ||
"name": "Host", | ||
"value": "ai1foo.com" | ||
}, | ||
{ | ||
"name": "Connection", | ||
"value": "keep-alive" | ||
}, | ||
{ | ||
"name": "sec-ch-ua", | ||
"value": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\"" | ||
}, | ||
{ | ||
"name": "Content-Type", | ||
"value": "application/json" | ||
}, | ||
{ | ||
"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/122.0.6261.95 Safari/537.36" | ||
}, | ||
{ | ||
"name": "app-name", | ||
"value": "bianjie" | ||
}, | ||
{ | ||
"name": "sec-ch-ua-platform", | ||
"value": "\"Windows\"" | ||
}, | ||
{ | ||
"name": "Accept", | ||
"value": "*/*" | ||
}, | ||
{ | ||
"name": "Origin", | ||
"value": "https://ai1foo.com" | ||
}, | ||
{ | ||
"name": "Sec-Fetch-Site", | ||
"value": "same-origin" | ||
}, | ||
{ | ||
"name": "Sec-Fetch-Mode", | ||
"value": "cors" | ||
}, | ||
{ | ||
"name": "Sec-Fetch-Dest", | ||
"value": "empty" | ||
}, | ||
{ | ||
"name": "Referer", | ||
"value": "https://ai1foo.com/login" | ||
}, | ||
{ | ||
"name": "Accept-Encoding", | ||
"value": "gzip, deflate, br" | ||
}, | ||
{ | ||
"name": "Accept-Language", | ||
"value": "zh-CN,zh;q=0.9" | ||
} | ||
], | ||
"cookies": [], | ||
"data": "{\"user\":\"{{username}}\",\"pass\":\"{{password}}\"}", | ||
"mimeType": "application/json" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
}, | ||
{ | ||
"re": "ok", | ||
"from": "content" | ||
} | ||
], | ||
"failed_asserts": [ | ||
{ | ||
"re": "用户不存在或密码错误", | ||
"from": "content" | ||
} | ||
], | ||
"extract_variables": [ | ||
{ | ||
"name": "yhm", | ||
"re": "\"user\":\"(.*?)\",", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "token", | ||
"re": "\"token\":\"(.*?)\",", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "access_token", | ||
"re": "\"access_token\":\"(.*?)\"", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "appid", | ||
"re": "\"appid\":(\\d+)", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "id", | ||
"re": "\"id\":(\\d+)", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"comment": "签到", | ||
"request": { | ||
"method": "GET", | ||
"url": "https://ai1foo.com/api/v1/user/signIn", | ||
"headers": [ | ||
{ | ||
"name": "Host", | ||
"value": "ai1foo.com" | ||
}, | ||
{ | ||
"name": "Connection", | ||
"value": "keep-alive" | ||
}, | ||
{ | ||
"name": "sec-ch-ua", | ||
"value": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\"" | ||
}, | ||
{ | ||
"name": "sec-ch-ua-mobile", | ||
"value": "?0" | ||
}, | ||
{ | ||
"name": "access-token", | ||
"value": "{{access_token}}" | ||
}, | ||
{ | ||
"name": "app-name", | ||
"value": "bianjie" | ||
}, | ||
{ | ||
"name": "Content-Type", | ||
"value": "application/x-www-form-urlencoded" | ||
}, | ||
{ | ||
"name": "User-Agent", | ||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36" | ||
}, | ||
{ | ||
"name": "uid", | ||
"value": "{{id}}" | ||
}, | ||
{ | ||
"name": "app", | ||
"value": "{{appid}}" | ||
}, | ||
{ | ||
"name": "token", | ||
"value": "{{token}}" | ||
}, | ||
{ | ||
"name": "sec-ch-ua-platform", | ||
"value": "\"Windows\"" | ||
}, | ||
{ | ||
"name": "Accept", | ||
"value": "*/*" | ||
}, | ||
{ | ||
"name": "Sec-Fetch-Site", | ||
"value": "same-origin" | ||
}, | ||
{ | ||
"name": "Sec-Fetch-Mode", | ||
"value": "cors" | ||
}, | ||
{ | ||
"name": "Sec-Fetch-Dest", | ||
"value": "empty" | ||
}, | ||
{ | ||
"name": "Referer", | ||
"value": "https://ai1foo.com/" | ||
}, | ||
{ | ||
"name": "Accept-Encoding", | ||
"value": "gzip, deflate, br" | ||
}, | ||
{ | ||
"name": "Accept-Language", | ||
"value": "zh-CN,zh;q=0.9" | ||
} | ||
], | ||
"cookies": [], | ||
"data": "", | ||
"mimeType": "application/x-www-form-urlencoded" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
}, | ||
{ | ||
"re": "今天已经签到过了", | ||
"from": "content" | ||
} | ||
], | ||
"failed_asserts": [ | ||
{ | ||
"re": "请登录账户后重新尝试!", | ||
"from": "content" | ||
} | ||
], | ||
"extract_variables": [ | ||
{ | ||
"name": "msg", | ||
"re": "\"msg\":\"(.*?)\",", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "lxqd", | ||
"re": ",\"continue_days\":(\\d+)", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"comment": "Unicode转换", | ||
"request": { | ||
"method": "POST", | ||
"url": "api://util/unicode", | ||
"headers": [], | ||
"cookies": [], | ||
"data": "html_unescape=false&content=用户名:{{yhm}},签到状态:{{msg}},已连续签到{{lxqd}}天。" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
}, | ||
{ | ||
"re": "\"状态\": \"200\"", | ||
"from": "content" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [ | ||
{ | ||
"name": "__log__", | ||
"re": "\"转换后\": \"(.*)\"", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
} | ||
] |