团购:debug接口
This commit is contained in:
@@ -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 —————————————— //
|
||||
Reference in New Issue
Block a user