fix licence watch

This commit is contained in:
yanweidong 2025-05-28 15:58:28 +08:00
parent 8c62f529e3
commit fc7c1e87a6
1 changed files with 3 additions and 3 deletions

View File

@ -69,13 +69,13 @@ func init() {
}
func WatchCheckLicence(licPath, licName string) {
for {
utils.SetInterval(func() {
if CheckLicence(licPath, licName) == false {
log.Println("授权文件失效,请重新部署授权文件:", licPath)
os.Exit(99)
}
time.Sleep(time.Hour * 1)
}
}, time.Hour*1)
}
// --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------