From e606ce895a18f6971604c49fc3e2415f23e3804e Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 15 Feb 2022 18:21:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=AF=94=E8=BE=83=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 时间比较修改 --- .../io/metersphere/api/service/ShareInfoService.java | 4 ++-- .../io/metersphere/api/service/utils/ShareUtill.java | 12 ++++++------ .../resources/db/migration/V107__v1.18_release.sql | 11 +++++++++++ 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/service/ShareInfoService.java b/backend/src/main/java/io/metersphere/api/service/ShareInfoService.java index 5519485b37..91a9d074c4 100644 --- a/backend/src/main/java/io/metersphere/api/service/ShareInfoService.java +++ b/backend/src/main/java/io/metersphere/api/service/ShareInfoService.java @@ -534,14 +534,14 @@ public class ShareInfoService { millisCheck(shareInfo,1000 * 60 * 60 * 24); }else { String expr= projectApplication.getShareReportExpr(); - long timeMills = getTimeMills(expr); + long timeMills = getTimeMills(shareInfo.getUpdateTime(),expr); millisCheck(shareInfo,timeMills); } } } private void millisCheck(ShareInfo shareInfo, long millis) { - if (System.currentTimeMillis() - shareInfo.getUpdateTime() > millis) { + if (shareInfo.getUpdateTime()