|
@@ -52,6 +52,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -93,6 +94,9 @@ public class SceneEditServiceImpl implements ISceneEditService {
|
|
|
@Autowired
|
|
|
private IScenePlusExtService scenePlusExtService;
|
|
|
|
|
|
+ @Value("${scene.expired.month:#{null}}")
|
|
|
+ private Integer expiredMonth;
|
|
|
+
|
|
|
@Override
|
|
|
public SceneAuthVO getAuth(String num, SSOUser ssoUser){
|
|
|
|
|
@@ -119,7 +123,7 @@ public class SceneEditServiceImpl implements ISceneEditService {
|
|
|
|
|
|
//判断本地资源是否已本删除,如果已删除,前端根据字段值为true提示用户不能使用某些功能,需要重算
|
|
|
Date algorithmTime = scenePlusExt.getAlgorithmTime() == null ? scenePlus.getCreateTime() : scenePlusExt.getAlgorithmTime();
|
|
|
- if (com.fdkankan.common.util.DateUtil.delay(algorithmTime, 3, Calendar.MONTH).before(new Date())) {
|
|
|
+ if (!ObjectUtils.isEmpty(expiredMonth) && com.fdkankan.common.util.DateUtil.delay(algorithmTime, expiredMonth, Calendar.MONTH).before(new Date())) {
|
|
|
sceneAuthVO.setSourceExpired(true);
|
|
|
}
|
|
|
|