From 8503a65c1f9be921cc054c56ff5178a1b599b77a Mon Sep 17 00:00:00 2001 From: dy Date: Tue, 26 Dec 2023 20:04:05 +0800 Subject: [PATCH] yuandan fun --- src/api_s2c/event/yuandan/fun.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api_s2c/event/yuandan/fun.ts b/src/api_s2c/event/yuandan/fun.ts index f815ece..c319a43 100644 --- a/src/api_s2c/event/yuandan/fun.ts +++ b/src/api_s2c/event/yuandan/fun.ts @@ -23,6 +23,7 @@ export class Yuandanfun { exchange: {}, taskfinish: [], taskval: await this.getTaskVal(call), + refreshTime: G.time }, }, {upsert: true, returnDocument: 'after'})).value } @@ -95,7 +96,7 @@ export class Yuandanfun { // 设置任务 if (isset == 1) { await G.mongodb.collection('event').updateMany( - {uid: call.uid, type: {$regex: "yuandan"}, hdid: parseInt(_hd.hdid)}, + {uid: call.uid, type: {$regex: `yuandan${_hd.hdid}`}}, _setData ) }