Merge pull request #13156 from dataease/pr@dev-v2@perf_share_exp_require

perf(仪表板): 分享-设置有效期必填后分享链接关闭有效期链接依然有效
This commit is contained in:
dataeaseShu
2024-11-06 12:01:29 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -199,7 +199,7 @@ public class XpackShareManage {
if (ObjectUtils.isEmpty(sharedBase) || !sharedBase.isPeRequire()) return true;
Long exp = share.getExp();
String pwd = share.getPwd();
return StringUtils.isNotBlank(pwd) && ObjectUtils.isNotEmpty(exp);
return StringUtils.isNotBlank(pwd) && ObjectUtils.isNotEmpty(exp) && exp > 0L;
}
public XpackShareProxyVO proxyInfo(XpackShareProxyRequest request) {