This commit is contained in:
bietiaop 2024-07-11 16:48:51 +08:00
parent 0c80a5ab9c
commit 512ced6305
2 changed files with 50 additions and 23 deletions

View file

@ -73,12 +73,16 @@ export class GachaLog extends ZZZPlugin {
async refreshGachaLog() {
const uid = await this.getUID();
if (!uid) return false;
const key = await getAuthKey(this.e, uid);
if (!key) {
await this.reply('authKey获取失败请检查cookie是否过期');
return false;
try {
const key = await getAuthKey(this.e, this.User, uid);
if (!key) {
await this.reply('authKey获取失败请检查cookie是否过期');
return false;
}
this.getLog(key);
} catch (error) {
await this.reply(error.message);
}
this.getLog(key);
}
async getLog(key) {
const uid = await this.getUID();