调整提示
This commit is contained in:
parent
fc528f081e
commit
1a534326f9
@ -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();
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user