backup: plugins

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2021-11-04 09:08:31 +08:00
parent 78ab1a73d6
commit 75302195e3
7 changed files with 395 additions and 70 deletions

View File

@@ -663,6 +663,7 @@ export class MiaoReward extends interfaces.Plugin {
sync.cancelled = false
let task = this.taskManager.create(() => {
try {
console.log(JSON.stringify(sync))
if (sync.scaned || !sender.isOnline() || !this.isHoldQrCodeItem(sender) || --sync.left < 0) {
if (sync.left < 0) {
this.logger.sender(sender, '§c二维码已过期 请重新获取 如已扫码请忽略!')