Compare commits

..

2 Commits

Author SHA1 Message Date
dy
3b12f760e1 Merge branch 'dev-tequan' into dev 2023-12-19 18:40:10 +08:00
xcy
8b157a047a fix:伙伴招募修改条件至尊月卡 2023-12-19 18:38:42 +08:00

View File

@ -12,8 +12,8 @@ export default async function (call: ApiCall<ReqRec, ResRec>) {
let db = await G.mongodb.cEvent('huobanzhaomu').findOne({uid: call.uid, type: 'huobanzhaomu'}); let db = await G.mongodb.cEvent('huobanzhaomu').findOne({uid: call.uid, type: 'huobanzhaomu'});
if (db?.rec.includes(call.req.index)) return call.error('', {code: -3}); if (db?.rec.includes(call.req.index)) return call.error('', {code: -3});
if (conf.gudKey == "chaozhiyueka") { if (conf.gudKey == "zhizunyueka") {
let logs = await PayFun.getPayLog(call.uid, "chaozhiyueka"); let logs = await PayFun.getPayLog(call.uid, "zhizunyueka");
if (!logs || logs.slice(-1)[0].eTime < G.time) { if (!logs || logs.slice(-1)[0].eTime < G.time) {
return call.error('', {code: -4}); return call.error('', {code: -4});
} }