From 16a5f219893350bb8c470b44973fd32f74fb6cd7 Mon Sep 17 00:00:00 2001 From: zhangjiwei <1945192314@qq.com> Date: Thu, 15 Apr 2021 15:47:02 +0800 Subject: [PATCH] =?UTF-8?q?update=20license-client/src/main/java/org/smart?= =?UTF-8?q?boot/license/client/License.java.=20=E5=AF=86=E9=92=A5=E7=9A=84?= =?UTF-8?q?=E7=94=9F=E6=95=88=E6=97=B6=E9=97=B4=E8=82=AF=E5=AE=9A=E6=98=AF?= =?UTF-8?q?=E5=B0=8F=E4=BA=8E=E7=B3=BB=E7=BB=9F=E7=9A=84=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E7=9A=84=EF=BC=8C=E8=BF=99=E9=87=8C=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E5=8E=BB=E6=8E=89=EF=BC=8C=E8=80=8C=E4=B8=94=E7=94=B1?= =?UTF-8?q?=E4=BA=8E=E5=88=A4=E6=96=AD=E6=98=AF=E5=B0=8F=E4=BA=8E=EF=BC=8C?= =?UTF-8?q?=E8=BF=99=E9=87=8C=E5=87=BA=E7=8E=B0=E4=BC=9A=E5=90=88=E6=B3=95?= =?UTF-8?q?=E7=9A=84license=E4=BC=9A=E6=8A=9B=E5=87=BA=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/smartboot/license/client/License.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/license-client/src/main/java/org/smartboot/license/client/License.java b/license-client/src/main/java/org/smartboot/license/client/License.java index 14e68a5..61182fd 100644 --- a/license-client/src/main/java/org/smartboot/license/client/License.java +++ b/license-client/src/main/java/org/smartboot/license/client/License.java @@ -203,10 +203,10 @@ public class License { if (applyTime > System.currentTimeMillis()) { throw new LicenseException("invalid license"); } - long effectiveTime = objectInputStream.readLong(); - if (effectiveTime < System.currentTimeMillis()) { - throw new LicenseException("license not effective"); - } + // long effectiveTime = objectInputStream.readLong(); + // if (effectiveTime < System.currentTimeMillis()) { + // throw new LicenseException("license not effective"); + // } long expireTime = objectInputStream.readLong(); if (expireTime != entity.getExpireTime()) { throw new LicenseException("invalid license"); -- Gitee