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 ) }