Commit 35baf527 authored by qinhaitao's avatar qinhaitao

fix: 🐛 数据统计时间

parent 2d736987
......@@ -45,8 +45,8 @@ export default class StatService {
const { activityId } = this.context.data
const { userNick } = userInfo
const typeName = typeof type === 'string' ? type : STAT_TYPE[type];
const _type = typeof type === 'string' ? STAT_TYPE[type] : type;
const typeName = typeof type === 'string' ? type : STAT_TYPE[type]
const _type = typeof type === 'string' ? STAT_TYPE[type] : type
const id = await this.statdao.insertOne({
activityId,
type: _type,
......@@ -163,7 +163,7 @@ export default class StatService {
}
// @ts-ignore
xlsxData.push(Object.values(keyValueMapper))
const tommorrow = new Date(day).getTime() + oneDay
const tommorrow = formatDate(day).getStartTimestamp() + oneDay
curDayTimestamp = tommorrow
day = dateFormatter(transformBeijingDate(tommorrow), 'yyyy/MM/dd')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment