累计充值红点
This commit is contained in:
parent
65d306227b
commit
a50b2624ac
@ -671,7 +671,8 @@ export class HuoDongHongDianFun {
|
|||||||
let _con = hdCon.data.tasks;
|
let _con = hdCon.data.tasks;
|
||||||
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});
|
||||||
let _mydata = db || {sTime: PublicShared.getToDayZeroTime(G.time), recIndex: []};
|
let _mydata = db || {sTime: PublicShared.getToDayZeroTime(G.time), recIndex: []};
|
||||||
let payNum = await PayFun.getPayDaysAllPayNum(call.uid, hdCon.stime, hdCon.etime);
|
let payNum = (await PayFun.getPayDaysAllPayNum(call.uid, hdCon.stime, hdCon.rtime)) * 10
|
||||||
|
payNum = payNum - (db?.round || 0) * R.sort((a, b) => b.total - a.total)(hdCon.data.tasks)[0].total
|
||||||
for (let index = 0; index < _con.length; index++) {
|
for (let index = 0; index < _con.length; index++) {
|
||||||
const element = _con[index];
|
const element = _con[index];
|
||||||
if (_mydata.recIndex.includes(index)) continue;
|
if (_mydata.recIndex.includes(index)) continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user