|
@@ -15,7 +15,7 @@ public class UKeyJob {
|
|
|
@Value("${qmth.ukey.license.id}")
|
|
|
private Long ukeyLicenseId;
|
|
|
|
|
|
- @Scheduled(fixedDelay = 1 * 1000, initialDelay = 5 * 1000)
|
|
|
+ @Scheduled(fixedDelay = 1 * 60 * 1000, initialDelay = 5 * 1000)
|
|
|
public void run() {
|
|
|
try {
|
|
|
UKeyHelper.slmInitEasy();
|
|
@@ -23,6 +23,8 @@ public class UKeyJob {
|
|
|
UKeyHelper.UKEY_MESSAGE = UKeyHelper.UKEY_STATUS ? "U盾许可认证成功" : "U盾许可认证失败";
|
|
|
if(!UKeyHelper.UKEY_STATUS){
|
|
|
systemCache.reset();
|
|
|
+ }else{
|
|
|
+ systemCache.init();
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
UKeyHelper.UKEY_STATUS = false;
|