fix:绑定设备回退修改

This commit is contained in:
kissnavel 2024-09-18 12:01:35 +08:00
parent ee6e66543b
commit 68449b1b30
3 changed files with 6 additions and 5 deletions

View file

@ -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,
};