抽卡:修复时间戳
This commit is contained in:
@@ -2,7 +2,7 @@ import { ActivityModelType } from '../../db/Activity';
|
||||
import { ActivityBase } from './activityField';
|
||||
import { prop } from '@typegoose/typegoose';
|
||||
import { UserGachaType } from '../../db/UserGacha';
|
||||
import { getSeconds } from '../../pubUtils/timeUtil';
|
||||
import { getSeconds, getAfterDateByDay } from '../../pubUtils/timeUtil';
|
||||
import { DicGacha } from '../../pubUtils/dictionary/DicGacha';
|
||||
import { getFloorStatus } from '../../services/gachaService';
|
||||
import { GACHA_OCCUPY_HID } from '../../consts';
|
||||
@@ -78,7 +78,7 @@ export class GachaListReturn {
|
||||
|
||||
if(userGacha) {
|
||||
this.freeCount = userGacha.freeCount;
|
||||
this.refFreeTime = getSeconds(userGacha.refFreeTime);
|
||||
this.refFreeTime = getAfterDateByDay(userGacha.refFreeTime, dicGacha.free.day);
|
||||
this.count = userGacha.count;
|
||||
this.floor = getFloorStatus(dicGacha.id, userGacha.floor);
|
||||
this.hope = userGacha.hope;
|
||||
|
||||
Reference in New Issue
Block a user