mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix:设备信息oaid改为随机参数
This commit is contained in:
parent
21e595e6f5
commit
ee6e66543b
7 changed files with 9 additions and 16 deletions
|
|
@ -7,6 +7,7 @@ import request from '../utils/request.js';
|
|||
import path from 'path';
|
||||
import { pluginName, resourcesPath } from './path.js';
|
||||
import version from './version.js';
|
||||
import crypto from 'crypto';
|
||||
export class ZZZPlugin extends plugin {
|
||||
/**
|
||||
* 获取用户 UID(如果需要同时获取API,可以直接调用 getAPI)
|
||||
|
|
@ -65,6 +66,7 @@ export class ZZZPlugin extends plugin {
|
|||
*/
|
||||
async getAPI() {
|
||||
this.e.game = 'zzz';
|
||||
this.uuid = crypto.randomUUID();
|
||||
// 直接调用获取 UID
|
||||
const uid = await this.getUID();
|
||||
// 获取用户的 cookie
|
||||
|
|
@ -102,7 +104,7 @@ export class ZZZPlugin extends plugin {
|
|||
productName: bindInfo?.deviceProduct,
|
||||
deviceType: bindInfo?.deviceName,
|
||||
modelName: bindInfo?.deviceModel,
|
||||
oaid: bindInfo?.oaid,
|
||||
oaid: this.uuid,
|
||||
deviceInfo: bindInfo?.deviceFingerprint,
|
||||
board: bindInfo?.deviceBoard,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue