mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix:绑定设备回退修改
This commit is contained in:
parent
ee6e66543b
commit
68449b1b30
3 changed files with 6 additions and 5 deletions
|
|
@ -7,7 +7,6 @@ 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)
|
||||
|
|
@ -66,7 +65,6 @@ export class ZZZPlugin extends plugin {
|
|||
*/
|
||||
async getAPI() {
|
||||
this.e.game = 'zzz';
|
||||
this.uuid = crypto.randomUUID();
|
||||
// 直接调用获取 UID
|
||||
const uid = await this.getUID();
|
||||
// 获取用户的 cookie
|
||||
|
|
@ -104,7 +102,7 @@ export class ZZZPlugin extends plugin {
|
|||
productName: bindInfo?.deviceProduct,
|
||||
deviceType: bindInfo?.deviceName,
|
||||
modelName: bindInfo?.deviceModel,
|
||||
oaid: this.uuid,
|
||||
oaid: bindInfo?.oaid,
|
||||
deviceInfo: bindInfo?.deviceFingerprint,
|
||||
board: bindInfo?.deviceBoard,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue