This commit is contained in:
bietiaop 2024-07-30 19:37:40 +08:00
parent d02bfa9036
commit 08be225ffc
2 changed files with 9 additions and 8 deletions

View file

@ -10,7 +10,7 @@ export const rulePrefix = '^((#|\\%)?(zzz|ZZZ|绝区零))';
* @returns {Promise<Object>}
*/
export const getCk = async (e, s = false) => {
e.isSr = true;
e.isZZZ = true;
let stoken = '';
const user = new User(e);
if (s) {
@ -25,16 +25,18 @@ export const getCk = async (e, s = false) => {
});
return ck;
}
const mysUser = (await user.user()).getMysUser('zzz');
const mysUser = await user.user();
const zzzUser = mysUser.getMysUser('zzz');
const uid = mysUser.getCkUid('zzz');
let ck;
if (mysUser) {
if (zzzUser) {
ck = {
default: {
ck: `${stoken}${mysUser.ck}`,
uid: mysUser.getUid('zzz'),
ck: `${stoken}${zzzUser.ck}`,
uid: uid,
qq: '',
ltuid: mysUser.ltuid,
device_id: mysUser.device,
ltuid: zzzUser.ltuid,
device_id: zzzUser.device,
},
};
}