CZT
2023-10-21 3e7773504d6bd15e6ed20ecf5c6236b163ba0fe8
igds-quantity/src/main/java/com/ld/igds/io/ServerRunner.java
@@ -1,13 +1,11 @@
package com.ld.igds.io;
import com.ld.igds.data.ConfigData;
import com.ld.igds.io.fzzy.server.BhznQuantityServerEngine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
/**
 * 可以根据配置文件灵活调整
@@ -27,15 +25,14 @@
    @Override
    public void run(String... strings) throws Exception {
//        if (configData.getActive().equals("dev")) {
//            serverEngine.start(BhznQuantityServerEngine.PORT);
//            return;
//        }
//
//        //风正致远默认部署服务当前应用使用9000端口
//        if (configData.getActive().indexOf("pro") >= 0) {
//            serverEngine.start(BhznQuantityServerEngine.PORT);
//            return;
//        }
        if (configData.getActive().equals("dev")) {
            serverEngine.start(BhznQuantityServerEngine.PORT);
            return;
        }
        if (configData.getActive().indexOf("pro") >= 0) {
            serverEngine.start(BhznQuantityServerEngine.PORT);
            return;
        }
    }
}