fix bug
This commit is contained in:
parent
8b15048d0f
commit
938d881ce3
@ -17,7 +17,6 @@ export default async function (call: ApiCall<ReqOpen, ResOpen>) {
|
|||||||
record: data?.record || {},
|
record: data?.record || {},
|
||||||
buyLog: await PayFun.getPayLogs(call.uid, payIds)
|
buyLog: await PayFun.getPayLogs(call.uid, payIds)
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getConf(call, args?: { id?: string; payId?: string }) {
|
export async function getConf(call, args?: { id?: string; payId?: string }) {
|
||||||
@ -32,7 +31,7 @@ export async function checkResetBuyLog(call) {
|
|||||||
let zeroTime = PublicShared.getToDayZeroTime()
|
let zeroTime = PublicShared.getToDayZeroTime()
|
||||||
|
|
||||||
let data = await G.mongodb.cEvent('zhoumolibao').findOne({uid: call.uid, type: 'zhoumolibao'})
|
let data = await G.mongodb.cEvent('zhoumolibao').findOne({uid: call.uid, type: 'zhoumolibao'})
|
||||||
if (data.refreshTime && data.refreshTime <= zeroTime) {
|
if (data?.refreshTime <= zeroTime) {
|
||||||
G.mongodb.cEvent(`zhoumolibao`).updateOne(
|
G.mongodb.cEvent(`zhoumolibao`).updateOne(
|
||||||
{uid: call.uid, type: `zhoumolibao`},
|
{uid: call.uid, type: `zhoumolibao`},
|
||||||
{$set: {record: {}}},
|
{$set: {record: {}}},
|
||||||
|
Loading…
Reference in New Issue
Block a user