自动化立体仓库 - WCS系统
*
lsh
2025-01-15 a25037d44427756e6ab9dd0ed1360425d660362a
src/main/java/com/zy/asrs/controller/ConsoleController.java
@@ -26,6 +26,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.*;
@@ -69,7 +70,16 @@
            }
        }
        Thread.sleep(200L);
        SystemProperties.WCS_RUNNING_STATUS.set(param.getOperatorType()==1?Boolean.TRUE:Boolean.FALSE);
        //验证许可证是否有效
        try{
            if (new LicenseVerify().verify()){
                SystemProperties.WCS_RUNNING_STATUS.set(param.getOperatorType()==1?Boolean.TRUE:Boolean.FALSE);
                return R.ok().add(Cools.add("status", SystemProperties.WCS_RUNNING_STATUS.get()));
            }
        } catch (Exception e){
            log.error("许可证验证失败!!异常:{}",e.getMessage());
        }
        SystemProperties.WCS_RUNNING_STATUS.set(Boolean.FALSE);
        return R.ok().add(Cools.add("status", SystemProperties.WCS_RUNNING_STATUS.get()));
    }