mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
👀👀👀👀👀
This commit is contained in:
parent
6eaf8c0e90
commit
47148fea67
2 changed files with 32 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue