-
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.
Co-authored-by: FellBan <[email protected]>
- Loading branch information
1 parent
b57bc36
commit 0ecbf2f
Showing
2 changed files
with
320 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,308 @@ | ||
[ | ||
{ | ||
"comment": "登录", | ||
"request": { | ||
"method": "POST", | ||
"url": "https://www.youjiaoku.com/wp-json/jwt-auth/v1/token", | ||
"headers": [ | ||
{ | ||
"name": "accept", | ||
"value": "application/json, text/plain, */*" | ||
}, | ||
{ | ||
"name": "accept-encoding", | ||
"value": "gzip, deflate, br" | ||
}, | ||
{ | ||
"name": "accept-language", | ||
"value": "zh-CN,zh;q=0.9" | ||
}, | ||
{ | ||
"name": "cache-control", | ||
"value": "no-cache" | ||
}, | ||
{ | ||
"name": "dnt", | ||
"value": "1" | ||
}, | ||
{ | ||
"name": "origin", | ||
"value": "https://www.youjiaoku.com" | ||
}, | ||
{ | ||
"name": "pragma", | ||
"value": "no-cache" | ||
}, | ||
{ | ||
"name": "referer", | ||
"value": "https://www.youjiaoku.com/" | ||
}, | ||
{ | ||
"name": "user-agent", | ||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" | ||
} | ||
], | ||
"cookies": [], | ||
"data": "nickname=&username={{username}}&password={{password}}&code=&img_code=&invitation_code=&token=&smsToken=&luoToken=&confirmPassword=&loginType=" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
} | ||
], | ||
"failed_asserts": [ | ||
{ | ||
"re": "\"code\"", | ||
"from": "content" | ||
} | ||
], | ||
"extract_variables": [ | ||
{ | ||
"name": "token", | ||
"re": "\"token\":\"(.+?)\"", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"comment": "更新Mission", | ||
"request": { | ||
"method": "POST", | ||
"url": "https://www.youjiaoku.com/wp-json/b2/v1/getUserMission", | ||
"headers": [ | ||
{ | ||
"name": "accept", | ||
"value": "application/json, text/plain, */*" | ||
}, | ||
{ | ||
"name": "accept-encoding", | ||
"value": "gzip, deflate, br" | ||
}, | ||
{ | ||
"name": "accept-language", | ||
"value": "zh-CN,zh;q=0.9" | ||
}, | ||
{ | ||
"name": "authorization", | ||
"value": "Bearer {{token}}" | ||
}, | ||
{ | ||
"name": "cache-control", | ||
"value": "no-cache" | ||
}, | ||
{ | ||
"name": "content-type", | ||
"value": "application/x-www-form-urlencoded" | ||
}, | ||
{ | ||
"name": "dnt", | ||
"value": "1" | ||
}, | ||
{ | ||
"name": "origin", | ||
"value": "https://www.youjiaoku.com" | ||
}, | ||
{ | ||
"name": "pragma", | ||
"value": "no-cache" | ||
}, | ||
{ | ||
"name": "referer", | ||
"value": "https://www.youjiaoku.com/" | ||
}, | ||
{ | ||
"name": "user-agent", | ||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" | ||
} | ||
], | ||
"cookies": [], | ||
"data": "count=4&paged=1", | ||
"mimeType": "application/x-www-form-urlencoded" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [] | ||
} | ||
}, | ||
{ | ||
"comment": "签到", | ||
"request": { | ||
"method": "POST", | ||
"url": "https://www.youjiaoku.com/wp-json/b2/v1/userMission", | ||
"headers": [ | ||
{ | ||
"name": "accept", | ||
"value": "application/json, text/plain, */*" | ||
}, | ||
{ | ||
"name": "accept-encoding", | ||
"value": "gzip, deflate, br" | ||
}, | ||
{ | ||
"name": "accept-language", | ||
"value": "zh-CN,zh;q=0.9" | ||
}, | ||
{ | ||
"name": "authorization", | ||
"value": "Bearer {{token}}" | ||
}, | ||
{ | ||
"name": "cache-control", | ||
"value": "no-cache" | ||
}, | ||
{ | ||
"name": "dnt", | ||
"value": "1" | ||
}, | ||
{ | ||
"name": "origin", | ||
"value": "https://www.youjiaoku.com" | ||
}, | ||
{ | ||
"name": "pragma", | ||
"value": "no-cache" | ||
}, | ||
{ | ||
"name": "referer", | ||
"value": "https://www.youjiaoku.com/" | ||
}, | ||
{ | ||
"name": "user-agent", | ||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" | ||
} | ||
], | ||
"cookies": [] | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [ | ||
{ | ||
"name": "credit", | ||
"re": "\"(\\d+)\"", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"comment": "用户信息", | ||
"request": { | ||
"method": "POST", | ||
"url": "https://www.youjiaoku.com/wp-json/b2/v1/getUserInfo", | ||
"headers": [ | ||
{ | ||
"name": "accept", | ||
"value": "application/json, text/plain, */*" | ||
}, | ||
{ | ||
"name": "accept-encoding", | ||
"value": "gzip, deflate, br" | ||
}, | ||
{ | ||
"name": "accept-language", | ||
"value": "zh-CN,zh;q=0.9" | ||
}, | ||
{ | ||
"name": "authorization", | ||
"value": "Bearer {{token}}" | ||
}, | ||
{ | ||
"name": "cache-control", | ||
"value": "no-cache" | ||
}, | ||
{ | ||
"name": "dnt", | ||
"value": "1" | ||
}, | ||
{ | ||
"name": "origin", | ||
"value": "https://www.youjiaoku.com" | ||
}, | ||
{ | ||
"name": "pragma", | ||
"value": "no-cache" | ||
}, | ||
{ | ||
"name": "referer", | ||
"value": "https://www.youjiaoku.com/" | ||
}, | ||
{ | ||
"name": "user-agent", | ||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" | ||
} | ||
], | ||
"cookies": [] | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [ | ||
{ | ||
"name": "zjf", | ||
"re": "\"credit\":\"(\\d+)\",", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "nickName", | ||
"re": "\"name\":\"(.+?)\"", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "lvname", | ||
"re": "},\"lv\":{\"name\":\"(.+?)\",", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"comment": "Unicode转换", | ||
"request": { | ||
"method": "POST", | ||
"url": "api://util/unicode", | ||
"headers": [], | ||
"cookies": [], | ||
"data": "content=签到结果:【今日签到获得{{credit}}积分】\\r\\n用户:【{{unicode(nickName)}}】,等级:【{{unicode(lvname)}}】,总积分【{{zjf}}】" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
}, | ||
{ | ||
"re": "\"状态\": \"200\"", | ||
"from": "content" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [ | ||
{ | ||
"name": "__log__", | ||
"re": "\"转换后\": \"(.*)\"", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
} | ||
] |