Merge branch 'feature/yuandan' into dev

This commit is contained in:
dy 2023-12-26 20:04:13 +08:00
commit 2a4ed01a34

View File

@ -23,6 +23,7 @@ export class Yuandanfun {
exchange: {}, exchange: {},
taskfinish: [], taskfinish: [],
taskval: await this.getTaskVal(call), taskval: await this.getTaskVal(call),
refreshTime: G.time
}, },
}, {upsert: true, returnDocument: 'after'})).value }, {upsert: true, returnDocument: 'after'})).value
} }
@ -95,7 +96,7 @@ export class Yuandanfun {
// 设置任务 // 设置任务
if (isset == 1) { if (isset == 1) {
await G.mongodb.collection('event').updateMany( 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 _setData
) )
} }