From e2af245be604ffcbd416e190ef5eb049274946b1 Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Mon, 31 Oct 2022 14:20:06 +0800 Subject: [PATCH] fix --- model/note.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/model/note.js b/model/note.js index 7776993..7213daa 100644 --- a/model/note.js +++ b/model/note.js @@ -38,6 +38,14 @@ export default class note { this.e.reply("体力推送开启成功~\n后续每天会为您推送体力") } delNote() { + if (!this.noteCfg[this.e.group_id]) { //首次直接设置 + this.noteCfg[this.e.group_id] = { + "task": [], + "isTask": true, + "sendResin": 120 + } + this.saveNote(this.noteCfg) + } try { if (this.noteCfg[this.e.group_id]) { if (!this.isTaskAdmin()) return true;