活动:修改活动的时间配置规则
This commit is contained in:
@@ -100,14 +100,16 @@ export class DailyCoinData extends ActivityBase {
|
||||
for (let obj of dataObj.coinRewardFormula) {
|
||||
this.coinRewardFormulaItem.push(new CoinRewardFormulaItem(obj))
|
||||
}
|
||||
let curDate = moment(new Date());
|
||||
if (curDate.hour() < REFRESH_TIME) {
|
||||
this.beginTime = curDate.startOf('d').add(-1, 'd').add(REFRESH_TIME, 'h').valueOf();
|
||||
this.endTime = moment(this.beginTime).add(1, 'd').valueOf();
|
||||
} else {
|
||||
this.beginTime = curDate.startOf('d').add(REFRESH_TIME, 'h').valueOf();
|
||||
this.endTime = moment(this.beginTime).add(1, 'd').valueOf()
|
||||
}
|
||||
// let curDate = moment(new Date());
|
||||
// if (curDate.hour() < REFRESH_TIME) {
|
||||
// this.beginTime = curDate.startOf('d').add(-1, 'd').add(REFRESH_TIME, 'h').valueOf();
|
||||
// this.endTime = moment(this.beginTime).add(1, 'd').valueOf();
|
||||
// } else {
|
||||
// this.beginTime = curDate.startOf('d').add(REFRESH_TIME, 'h').valueOf();
|
||||
// this.endTime = moment(this.beginTime).add(1, 'd').valueOf()
|
||||
// }
|
||||
// console.log('ddddddddddddbbbbbbb')
|
||||
|
||||
}
|
||||
|
||||
constructor(activityData: ActivityModelType) {
|
||||
|
||||
Reference in New Issue
Block a user