From 52af4a60c6ff95732126393e798ea90d1ce6f974 Mon Sep 17 00:00:00 2001 From: luying Date: Tue, 22 Nov 2022 17:48:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E5=95=86=E5=BA=97):=20?= =?UTF-8?q?=E9=99=90=E6=97=B6=E5=95=86=E5=BA=97=E6=B0=B8=E4=B9=85=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=B9=9F=E6=B7=BB=E5=8A=A0beginTime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/domain/roleField/shop.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shared/domain/roleField/shop.ts b/shared/domain/roleField/shop.ts index 9960c33d3..c1b46c7a7 100644 --- a/shared/domain/roleField/shop.ts +++ b/shared/domain/roleField/shop.ts @@ -135,17 +135,17 @@ export class ShopDicData { this.endTime = obj.endTime; break; } + case ACTIVITY_TIME_TYPE.FOREVER: + { + this.beginTime = obj.beginTime; + break; + } default: { break; } } } - canShow() { - if(this.isForever) return true; - return this.beginTime <= moment().unix() && this.endTime >= moment().unix(); - } - public setReadRecord(record: UserShopTypeType) { let now = nowSeconds(); if(this.beginTime <= now && this.endTime >= now) {