From 561954de17c8723bb3a4993c18e02ae84a475bed Mon Sep 17 00:00:00 2001 From: xichaoyin Date: Thu, 11 Jan 2024 18:00:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=BB=84=E6=97=97=E9=85=92=E9=A6=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api_s2c/event/huangqijiuguan/fun.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/api_s2c/event/huangqijiuguan/fun.ts b/src/api_s2c/event/huangqijiuguan/fun.ts index 6eb7b53..64510ef 100644 --- a/src/api_s2c/event/huangqijiuguan/fun.ts +++ b/src/api_s2c/event/huangqijiuguan/fun.ts @@ -330,6 +330,10 @@ export default class HQJGFun { if (!hd) return let today = this.today(hd); + let tasks = hd.data.task[`day${today}`]; + + if (!tasks) return + await this.getMydata(call, hd.hdid) let isset = 0; @@ -337,7 +341,7 @@ export default class HQJGFun { $inc: {}, $set: {} }; - let tasks = hd.data.task[`day${today}`]; + for (let taskid of Object.keys(tasks)) { let taskCon = tasks[taskid]; if (taskCon.stype != stype) continue