master
duhui 2021-11-17 17:29:04 +08:00
parent 43cb649ab7
commit ff527f4e5b
1 changed files with 4 additions and 3 deletions

View File

@ -76,12 +76,13 @@ public class ServerInfoController {
/**
*
* @param map
* @return
*/
@RequestMapping(value = "/findServerInfoNotCache", method = {RequestMethod.POST, RequestMethod.GET})
public String findServerInfoNotCache(ModelMap map) throws Exception {
TaskKit.scheduleWithFixedOne(this::refreshCache,0);
if (state == 0){
TaskKit.scheduleWithFixedOne(this::refreshCache,0);
}
return findServerInfo(map,0);
}
@ -206,7 +207,7 @@ public class ServerInfoController {
/**
*
* @param request
* @param serverInfo
* @return
* @throws Exception
*/