This commit is contained in:
mamengke01
2021-01-29 16:35:15 +08:00
parent 75d07b0550
commit afddeba1c9
12 changed files with 205 additions and 41 deletions

View File

@@ -47,6 +47,9 @@ export const ARMY = {
ARMY_TRAIN_BUYTIMES: 2, // 练兵场每日可购买次数
ARMY_TRAIN_TIMESCOST: 20, // 练兵场购买次数每日
ARMY_WEEKHONOUR_LIMIT: 1000, // 军团成员参与职位排名周功勋下限(包含)
ARMY_WISH_TIMES: 1, // 单个许愿池每日可许愿次数
ARMY_WISH_HELP: 3, // 每日可满足他人心愿的次数
ARMY_DONATE_TIMES: 10, // 捐献池每日可捐献的次数
};
export const TREASURE = {
CAPTAIN_DROP: 5, // 普通套装图纸队长必掉落次数

View File

@@ -80,4 +80,12 @@ export function getCurHourPoint(hour: number) {
date.setSeconds(0);
var time = Math.floor(date.getTime() / PER_SECOND);
return time;
}
export function getTodayZeroDate() {
var date = new Date();
date.setHours(0);
date.setMinutes(0);
date.setSeconds(0);
return date;
}