🐛 修复刷新ck指令无效

This commit is contained in:
CMHopeSunshine 2023-03-03 15:19:03 +08:00
parent c45bdc381c
commit 5372592fe0

View File

@ -338,7 +338,7 @@ async def _(event: MessageEvent):
mys_id_done.append(ck.mys_id) mys_id_done.append(ck.mys_id)
if new_cookie := await get_cookie_token_by_stoken(ck.stoken.split('stoken=')[-1], ck.mys_id): if new_cookie := await get_cookie_token_by_stoken(ck.stoken.split('stoken=')[-1], ck.mys_id):
await PrivateCookie.filter(user_id=str(event.user_id), mys_id=ck.mys_id).update( await PrivateCookie.filter(user_id=str(event.user_id), mys_id=ck.mys_id).update(
cookie=new_cookie) cookie=f'account_id={ck.mys_id};cookie_token={new_cookie}', status=1)
refresh_done.append(ck.mys_id) refresh_done.append(ck.mys_id)
if not refresh_done: if not refresh_done:
await refresh_ck.finish('刷新cookie失败请重新绑定', at_sender=True) await refresh_ck.finish('刷新cookie失败请重新绑定', at_sender=True)