Commit 1aa52cd7 authored by 何金镒's avatar 何金镒

清除兆慧token 1天一次

parent 99d2bf65
...@@ -88,9 +88,6 @@ public class CDCController { ...@@ -88,9 +88,6 @@ public class CDCController {
LocalDateTime localDateTime = token.getCreateTime().plusDays(6); LocalDateTime localDateTime = token.getCreateTime().plusDays(6);
if(localDateTime.isBefore(LocalDateTime.now())){ if(localDateTime.isBefore(LocalDateTime.now())){
log.info("getCDCToken..CDCToken已过期..sn:{}",sn); log.info("getCDCToken..CDCToken已过期..sn:{}",sn);
token.setState(CDCToken.STATE_DISABLED);
tokenService.updateById(token);
cdc_token = cdcHttpUtils.getCDCToken(ccuId, ownerId); cdc_token = cdcHttpUtils.getCDCToken(ccuId, ownerId);
token.setAccessToken(cdc_token); token.setAccessToken(cdc_token);
token.setState(CDCToken.STATE_ENABLED); token.setState(CDCToken.STATE_ENABLED);
......
...@@ -49,7 +49,7 @@ public class TemporarySceneTask { ...@@ -49,7 +49,7 @@ public class TemporarySceneTask {
@Scheduled(fixedRate = 43200000) @Scheduled(fixedRate = 43200000)
public void examineCDCToken() { public void examineCDCToken() {
log.info("开始定时任务:检查建发的token是否过期"); log.info("开始定时任务:检查建发的token是否过期");
int i = cdcTokenService.examineCDCToken(6); int i = cdcTokenService.examineCDCToken(1);
log.info("结束定时任务:检查建发的token是否过期"+i); log.info("结束定时任务:检查建发的token是否过期"+i);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment