自动化立体仓库 - WMS系统
skyouc
2025-12-30 5d28b1d3168cfc6341ca6fb579d688305555e7af
src/main/java/com/zy/system/timer/LicenseTimer.java
@@ -2,7 +2,6 @@
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.core.common.Cools;
import com.zy.common.utils.HttpHandler;
import com.zy.system.entity.LicenseInfos;
import com.zy.system.entity.license.*;
@@ -19,7 +18,7 @@
@Component
public class LicenseTimer {
    private static boolean SYSTEM_SUPPORT = false;//系统激活状态,默认关闭
    private static boolean SYSTEM_SUPPORT = true;//系统激活状态,默认关闭
    private static int LICENSE_DAYS = 0;//许可证天数
@@ -76,7 +75,7 @@
                abstractServerInfos = new WindowsServerInfos();
            } else if (osName.startsWith("linux")) {
                abstractServerInfos = new LinuxServerInfos();
            }else{//其他服务器类型
            } else {//其他服务器类型
                abstractServerInfos = new WindowsServerInfos();
            }
            LicenseCheck serverInfos = abstractServerInfos.getServerInfos();
@@ -132,7 +131,7 @@
            int day = (int) (num / 24 / 60 / 60 / 1000);
            setLicenseDays(day);
            setSystemSupport(true);
        }else {
        } else {
            setLicenseDays(0);
            setSystemSupport(false);
        }