fix: 保活时续上即席查询的单点票据
This commit is contained in:
@@ -315,6 +315,16 @@ class NqiClient:
|
||||
async def current_user(self) -> dict:
|
||||
return _public_user(await self._cas_user_payload())
|
||||
|
||||
async def renew_ticket(self) -> bool:
|
||||
"""用单点票据进入即席查询。票据还有效时,这一步会把它续上。"""
|
||||
from app.nqi.adhoc import ensure_session
|
||||
|
||||
try:
|
||||
await ensure_session(self)
|
||||
except NqiAuthError:
|
||||
return False
|
||||
return True
|
||||
|
||||
async def touch_session(self) -> dict:
|
||||
data = await self._cas_user_payload()
|
||||
await self._touch_password()
|
||||
|
||||
Reference in New Issue
Block a user