👀👀👀👀👀

This commit is contained in:
bietiaop 2024-08-16 22:32:53 +08:00
parent 6eaf8c0e90
commit 47148fea67
2 changed files with 32 additions and 5 deletions

View file

@ -314,8 +314,14 @@ export default class MysZZZApi extends MysApi {
if (!data.headers) data.headers = {};
data.headers['x-rpc-device_fp'] = data.deviceFp;
}
const uid = this.uid;
let bindInfo = await redis.get(`ZZZ:DEVICE_FP:${uid}:BIND`);
// 从 this.cookie 中获取ltuid
const ck = this.cookie;
let ltuid = ck.match(/ltuid=(\d+);/);
if (ltuid) {
ltuid = ltuid[1];
}
let bindInfo = await redis.get(`ZZZ:DEVICE_FP:${ltuid}:BIND`);
if (bindInfo) {
try {
bindInfo = JSON.parse(bindInfo);