Browse Source

增加本番配置

jwy_category
zhczyx@163.com 1 month ago
parent
commit
25f9d45d7e
  1. 45
      pom.xml
  2. 5
      src/main/java/com/techsor/datacenter/sender/service/KingIOServerService.java

45
pom.xml

@ -18,6 +18,7 @@
<aws.ecr.registry>126588786019.dkr.ecr.ap-northeast-1.amazonaws.com</aws.ecr.registry>
<aws.ecr.registryTest>029530100103.dkr.ecr.ap-northeast-1.amazonaws.com</aws.ecr.registryTest>
<aws.ecr.repository>spf-sender-stg</aws.ecr.repository>
<aws.ecr.repositoryProd>spf-sender</aws.ecr.repositoryProd>
</properties>
<dependencyManagement>
<dependencies>
@ -501,28 +502,7 @@
</authConfig>
<images>
<image>
<name>${aws.ecr.registry}/${aws.ecr.repository}:latest</name>
<registry>${aws.ecr.registry}</registry>
<build>
<dockerFile>${project.basedir}/Dockerfile</dockerFile>
</build>
</image>
</images>
</configuration>
</plugin>
<!-- 测试环境 -->
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.38.1</version>
<configuration>
<authConfig>
<username>AKIAQNYBBSGDVT3VF4ON</username>
<password>DEhPMTHAIsKK7L2klURQrmMe3r2Tqgbaa6z2FYQu</password>
</authConfig>
<images>
<image>
<name>${aws.ecr.registryTest}/aeon/${aws.ecr.repository}:latest</name>
<name>${aws.ecr.registry}/aeon-prod/${aws.ecr.repositoryProd}:latest</name>
<registry>${aws.ecr.registry}</registry>
<build>
<dockerFile>${project.basedir}/Dockerfile</dockerFile>
@ -531,6 +511,27 @@
</images>
</configuration>
</plugin>
<!-- &lt;!&ndash; 测试环境 &ndash;&gt;-->
<!-- <plugin>-->
<!-- <groupId>io.fabric8</groupId>-->
<!-- <artifactId>docker-maven-plugin</artifactId>-->
<!-- <version>0.38.1</version>-->
<!-- <configuration>-->
<!-- <authConfig>-->
<!-- <username>AKIAQNYBBSGDVT3VF4ON</username>-->
<!-- <password>DEhPMTHAIsKK7L2klURQrmMe3r2Tqgbaa6z2FYQu</password>-->
<!-- </authConfig>-->
<!-- <images>-->
<!-- <image>-->
<!-- <name>${aws.ecr.registryTest}/aeon/${aws.ecr.repository}:latest</name>-->
<!-- <registry>${aws.ecr.registry}</registry>-->
<!-- <build>-->
<!-- <dockerFile>${project.basedir}/Dockerfile</dockerFile>-->
<!-- </build>-->
<!-- </image>-->
<!-- </images>-->
<!-- </configuration>-->
<!-- </plugin>-->
</plugins>

5
src/main/java/com/techsor/datacenter/sender/service/KingIOServerService.java

@ -234,7 +234,10 @@ public class KingIOServerService {
tempValue = (Boolean) value ? 1 : 0; // 布尔型处理
} else if (value instanceof Integer) {
tempValue = (Integer) value; // 整型处理
} else {
} else if (value instanceof Double) {
tempValue = Integer.valueOf(((Double) value).intValue());
}
else {
throw new IllegalArgumentException("Unsupported value type: " + value.getClass());
}

Loading…
Cancel
Save