mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-15 12:47:48 +00:00
fix:调准顺序
This commit is contained in:
parent
cd5ad2457a
commit
10c6d53898
1 changed files with 1 additions and 1 deletions
|
|
@ -123,6 +123,7 @@ export class GachaLog extends ZZZPlugin {
|
|||
}
|
||||
async refreshGachaLog() {
|
||||
const uid = await this.getUID();
|
||||
if (!uid) return false;
|
||||
if (/^(1[0-9])[0-9]{8}/i.test(uid)) {
|
||||
const { api } = await this.getAPI();
|
||||
this.reply('抽卡记录获取中请稍等...可能需要一段时间,请耐心等待');
|
||||
|
|
@ -138,7 +139,6 @@ export class GachaLog extends ZZZPlugin {
|
|||
await common.makeForwardMsg(this.e, msg.join('\n'), '抽卡记录更新成功')
|
||||
);
|
||||
}
|
||||
if (!uid) return false;
|
||||
const lastQueryTime = await redis.get(`ZZZ:GACHA:${uid}:LASTTIME`);
|
||||
const gachaConfig = settings.getConfig('gacha');
|
||||
const coldTime = _.get(gachaConfig, 'interval', 300);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue