mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix:部分逻辑
This commit is contained in:
parent
800bc15007
commit
c5d9131c1d
9 changed files with 56 additions and 30 deletions
|
|
@ -368,13 +368,14 @@ export default class MysZZZApi extends MysApi {
|
|||
}
|
||||
}
|
||||
const device_fp = await redis.get(`ZZZ:DEVICE_FP:${ltuid}:FP`);
|
||||
if (device_fp) {
|
||||
data.deviceFp = device_fp;
|
||||
data.headers['x-rpc-device_fp'] = device_fp;
|
||||
}
|
||||
const device_id = await redis.get(`ZZZ:DEVICE_FP:${ltuid}:ID`);
|
||||
if (device_id) {
|
||||
data.deviceId = device_id;
|
||||
if (device_fp && device_id) {
|
||||
data = {
|
||||
...data,
|
||||
deviceFp: device_fp,
|
||||
deviceId: device_id,
|
||||
};
|
||||
data.headers['x-rpc-device_fp'] = device_fp;
|
||||
data.headers['x-rpc-device_id'] = device_id;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue