mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-22 04:30:05 +08:00
对米游社cookie进行判断,整合米游社签到信息
This commit is contained in:
@@ -93,6 +93,8 @@ async def _(event: MessageEvent, cmd: Tuple[str, ...] = Command(), arg: Message
|
|||||||
print(cookie)
|
print(cookie)
|
||||||
cookie_json = json.loads(cookie)
|
cookie_json = json.loads(cookie)
|
||||||
print(cookie_json)
|
print(cookie_json)
|
||||||
|
if 'login_ticket' not in cookie_json:
|
||||||
|
await bind.finish("请发送正确的cookie!")
|
||||||
login_ticket = cookie_json['login_ticket']
|
login_ticket = cookie_json['login_ticket']
|
||||||
# try:
|
# try:
|
||||||
res = await AsyncHttpx.get(url=bbs_Cookie_url.format(login_ticket))
|
res = await AsyncHttpx.get(url=bbs_Cookie_url.format(login_ticket))
|
||||||
|
|||||||
Reference in New Issue
Block a user