*
lsh
1 天以前 794ed17c6f37a6deacb6ef37349dceb03eae3395
src/main/java/com/zy/core/MainProcess.java
@@ -29,40 +29,44 @@
    private int j = 0;
    private int k = 0;
    private int l = 0;
    private int[] autoZ = new int[]{0,0,0,0,0,0,0};
    /**
     * =====>>  开始工作
     */
    public void start(){
        thread = new Thread(() -> {
            try{
                Thread.sleep(200);
                log.info("++++++++ 开始验证许可证 ++++++++");
                if (!mainService.licenseVerify()){
                    SystemProperties.WCS_RUNNING_STATUS.set(Boolean.FALSE);
                    log.info("++++++++ 验证许可证失败 ++++++++");
                } else {
                    SystemProperties.WCS_RUNNING_STATUS.set(Boolean.TRUE);
                    log.info("++++++++ 验证许可证成功 ++++++++");
                }
            } catch (Exception e) {}
            while (!Thread.currentThread().isInterrupted()) {
                try {
                    i++; if (i>5) i=0;
                    j++; if (j>5) j=0;
                    k++;
                    if (k>13) {
                        k=0;
                        l++;
                        if (l>3) l=0;
                    }
                    // 间隔
                    Thread.sleep(1000);
                    Thread.sleep(200);
                    // 系统运行状态判断
                    if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    if (SystemProperties.WCS_RUNNING_STATUS.get()) {
                        continue;
                    }
                    //更新位置信息
                    mainService.updateStePositionNearby();
                    //更新位置信息
                    mainService.updateStePosition();
                    // 任务下发
                    mainService.DevpTaskNoRun();
                    // 任务下发
                    mainService.loopSteCharge();
                    // 任务完成
                    mainService.rgvCompleteWrkMastSta(autoZ);
                    //更新位置信息
                    mainService.updateStePosition();
                } catch (Exception e) {
                    e.printStackTrace();