修复米游社签到在无用户cookie的情况下执行的错误

This commit is contained in:
xiayingLIULI 2022-08-22 13:45:04 +08:00 committed by GitHub
parent e73c509823
commit 1dc8cb2a98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ async def _(event: MessageEvent, cmd: Tuple[str, ...] = Command()):
async def mihoyobbs_sign(user_id):
uid = await Genshin.get_user_uid(user_id)
if not uid:
if not uid or not await Genshin.get_user_cookie(uid, True):
await mihoyobbs_matcher.finish("请先绑定uid和cookie", at_sender=True)
stuid = await Genshin.get_stuid(uid)
stoken = await Genshin.get_stoken(uid)