红点:添加每日5点定时刷新推送

This commit is contained in:
luying
2021-06-03 12:04:32 +08:00
parent 9eb82321c4
commit e29344072f
6 changed files with 156 additions and 81 deletions

View File

@@ -17,6 +17,8 @@ export const GUEST_MAX_TIME = 60 * 60; // 游客体验时间
export const GUEST_DAY = 15; // 同一设备15天内不得重复体验游客模式
export const REFRESH_TIME = 5; // 统一一天刷新时间
export const PUSH_BATCH = 100; // 推送分批人数
export const PUSH_INTERVAL = 5 * 1000; // 分批时间5秒一批
export enum TIME_OUTPUT_TYPE {
DATE = 1,
STAMP_10 = 2,

View File

@@ -1,5 +1,5 @@
import moment = require('moment');
import { ACTIVITY_RESOURCES_TYPE, ACTIVITY_TYPE, SERVER_OPEN_TIME, SIGNIN_CLOSE, SIGNIN_OPEN } from '../../consts';
import { ACTIVITY_TYPE, SERVER_OPEN_TIME, SIGNIN_CLOSE, SIGNIN_OPEN } from '../../consts';
import { ActivityModelType } from '../../db/Activity';
import { ActivitySignInModelType } from '../../db/ActivitySignIn';
import { deltaDays } from '../../pubUtils/util';

View File

@@ -1,5 +1,3 @@
import moment = require('moment');
import { random } from 'underscore';
import { ActivityModelType } from '../../db/Activity';
import { ActivityVipRechargeMoneyModelType } from '../../db/ActivityVipRechargeMoney';
import { ActivityBase } from './activityField';