活动:重写七天乐活动的数据结构
This commit is contained in:
@@ -120,10 +120,10 @@ export async function getPlayerSignInData(activityId: number, serverId: number,
|
||||
let curDate = moment(createTime * 1000);
|
||||
if (curDate.hour() < REFRESH_TIME) {
|
||||
betinTime = moment(createTime * 1000).startOf('d').add(-1, 'd').add(REFRESH_TIME, 'h').toDate();
|
||||
endTime = moment(betinTime).add(NEW_PLAYER_SIGIN_DAYS - 1, 'd').endOf('d').toDate()
|
||||
endTime = moment(betinTime).add(NEW_PLAYER_SIGIN_DAYS, 'd').toDate()
|
||||
} else {
|
||||
betinTime = moment(createTime * 1000).startOf('d').add(REFRESH_TIME, 'h').toDate();
|
||||
endTime = moment(betinTime).add(NEW_PLAYER_SIGIN_DAYS - 1, 'd').endOf('d').toDate()
|
||||
endTime = moment(betinTime).add(NEW_PLAYER_SIGIN_DAYS, 'd').toDate()
|
||||
}
|
||||
playerData.setNewPlayerDate(betinTime, endTime)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user