mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix: sk
This commit is contained in:
parent
0c80a5ab9c
commit
512ced6305
2 changed files with 50 additions and 23 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue