feat: 添加更多评分

This commit is contained in:
bietiaop 2024-07-30 15:36:57 +08:00
parent f81ecd8ae2
commit 63fc4da9be
4 changed files with 257 additions and 42 deletions

View file

@ -64,7 +64,7 @@ export const getAuthKey = async (e, _user, zzzUid, authAppid = 'csc') => {
'获取cookie失败请确认绑定了cookie或者查询的UID是否与cookie对应请确认bot所使用的是绝区零UID'
);
}
if (uidData.ltuid !== ck.stuid) {
if (String(uidData.ltuid) !== String(ck.stuid)) {
throw new Error(
`当前UID${zzzUid}查询所使用的米游社ID${ck.stuid}与当前切换的米游社ID${uidData.ltuid}不匹配请切换UID后尝试`
);
@ -91,6 +91,7 @@ export const getAuthKey = async (e, _user, zzzUid, authAppid = 'csc') => {
});
// 获取数据
res = await res.json();
logger.debug(`[zzz:authkey]`, res);
// 返回 authkey
return res?.data?.authkey;
};