zzgtfwq
昨天 6299fb7b7732947e9f997c92599b1772b8884962
#26-03-10-00
2个文件已添加
2个文件已修改
21 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/ConsoleController.java 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/MainProcess.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/license.lic 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/publicCerts.keystore 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/ConsoleController.java
@@ -37,6 +37,7 @@
import com.zy.core.properties.SlaveProperties;
import com.zy.core.properties.SystemProperties;
import com.zy.core.thread.*;
import com.zy.system.entity.license.LicenseVerify;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -88,7 +89,23 @@
            }
        }
        Thread.sleep(200L);
        SystemProperties.WCS_RUNNING_STATUS.set(param.getOperatorType()==1?Boolean.TRUE:Boolean.FALSE);
        //验证许可证是否有效
        try{
            boolean systemSign = SystemProperties.WCS_RUNNING_STATUS.get();
            if (!systemSign){
                if (new LicenseVerify().verify()){
                    SystemProperties.WCS_RUNNING_STATUS.set(Boolean.TRUE);
//                    SystemProperties.WCS_RUNNING_STATUS.set(param.getOperatorType()==1?Boolean.TRUE:Boolean.FALSE);
                    return R.ok();
                }
                return R.error("许可证验证失败!").add("许可证验证失败!");
            }
        } catch (Exception e){
            log.error("许可证验证失败!!异常:{}",e.getMessage());
            return R.error();
        }
        SystemProperties.WCS_RUNNING_STATUS.set(Boolean.FALSE);
        return R.ok().add(Cools.add("status", SystemProperties.WCS_RUNNING_STATUS.get()));
    }
src/main/java/com/zy/core/MainProcess.java
@@ -109,7 +109,7 @@
        int i = 0;
        while (true) {
            try{
                Thread.sleep(60*60*1000L);
                Thread.sleep(10*60*1000L);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
src/main/resources/license.lic
Binary files differ
src/main/resources/publicCerts.keystore
Binary files differ