This commit is contained in:
kissnavel 2024-08-19 21:58:22 +08:00
parent 1425ac5faf
commit 34cd8b15dc
2 changed files with 3 additions and 5 deletions

View file

@ -1,4 +1,4 @@
import { generateSeed, randomString } from '../../utils/data.js';
import { generateSeed } from '../../utils/data.js';
import settings from '../settings.js';
import crypto from 'crypto';
/**

View file

@ -179,12 +179,10 @@ export class ZZZPlugin extends plugin {
*/
async getPlayerInfo() {
// 获取 米游社 API
const { api, uid, deviceFp } = await this.getAPI();
const { api, uid } = await this.getAPI();
if (!api) return false;
// 获取用户信息
let userData = await api.getFinalData(this.e, 'zzzUser', {
deviceFp,
});
let userData = await api.getFinalData(this.e, 'zzzUser');
if (!userData) return false;
// 取第一个用户信息
userData =