自选礼包红点

This commit is contained in:
dy 2023-12-27 10:23:12 +08:00
parent f9989cf002
commit 4538c0dc16

View File

@ -829,7 +829,7 @@ export class HuoDongHongDianFun {
static async zixuanlibaoHongDian(call: ApiCall, hdCon: ReqAddHuoDong): Promise<hongdianVal> { static async zixuanlibaoHongDian(call: ApiCall, hdCon: ReqAddHuoDong): Promise<hongdianVal> {
let _dbType: `zixuanlibao${number}` = `zixuanlibao${hdCon.hdid}` let _dbType: `zixuanlibao${number}` = `zixuanlibao${hdCon.hdid}`
let db = await G.mongodb.cEvent(_dbType).findOne({uid: call.uid, type: _dbType}); let db = await G.mongodb.cEvent(_dbType).findOne({uid: call.uid, type: _dbType});
if (!db?.record?.[0]) { if (!db?.rec) {
return {show: true} return {show: true}
} }