调整提示

This commit is contained in:
WenG 2020-09-01 12:58:46 +08:00
parent fc528f081e
commit 1a534326f9
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ public class DingDingStartUp implements ApplicationRunner {
@Override @Override
public void run(ApplicationArguments args) throws Exception { public void run(ApplicationArguments args) throws Exception {
if (dingDingAppProperties.getActive() == null || !dingDingAppProperties.getActive()) { if (dingDingAppProperties.getActive() == null || !dingDingAppProperties.getActive()) {
LOG.debug("钉钉应用未启动"); LOG.debug("钉钉应用未激活");
return; return;
} }
DingDingAppManager dingDingAppManager = DingDingAppManager.getInstance(); DingDingAppManager dingDingAppManager = DingDingAppManager.getInstance();

View File

@ -30,7 +30,7 @@ public class DingDingTask {
@Scheduled(cron = "0 0/10 * * * ?") @Scheduled(cron = "0 0/10 * * * ?")
public void refreshAppAccessToken() { public void refreshAppAccessToken() {
if (dingDingAppProperties.getActive() == null || !dingDingAppProperties.getActive()) { if (dingDingAppProperties.getActive() == null || !dingDingAppProperties.getActive()) {
LOG.debug("钉钉应用未启动"); LOG.debug("钉钉应用未激活");
return; return;
} }
DingDingAppManager.getInstance().refreshAccessToken(); DingDingAppManager.getInstance().refreshAccessToken();