团购:debug接口

This commit is contained in:
luying
2022-10-09 17:18:26 +08:00
parent 1f196a5d36
commit a88d8160cd
8 changed files with 90 additions and 12 deletions

View File

@@ -804,7 +804,13 @@ async function ladderDailyReward() {
// —————————————— 团购定时器 start —————————————— //
async function initGroupShopSchedule() {
initSumSchedule();
scheduleJob('groupShopRefund', '0 30 5 * * ?', () => {
refundGroupShop();
});
}
async function initSumSchedule() {
let activities = await ActivityModel.findActivityByType(ACTIVITY_TYPE.GROUP_SHOP);
let scheduleMap = new Map<number, { activityId: number, itemId: number, sum: number }[]>(); // 时间 => data
for(let activity of activities) {
@@ -825,8 +831,6 @@ async function initGroupShopSchedule() {
await setGroupShopToSetSum(arr);
});
}
scheduleJob('groupShopRefund', '0 30 5 * * ?', refundGroupShop);
}
// —————————————— 团购定时器 end —————————————— //