From cc3391f10e946f2944de39e5d82c9be754c32e29 Mon Sep 17 00:00:00 2001 From: Cheney Wong Date: Thu, 26 Jun 2025 11:03:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=A0=E5=AF=86=E5=B9=B6MA?= =?UTF-8?q?C=20=E8=AE=A1=E7=AE=97=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 13 +++++++++++-- src/test/java/test/EncryptAndMac.java | 7 ++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index e9c9cf8..ea2b3c3 100644 --- a/pom.xml +++ b/pom.xml @@ -24,11 +24,20 @@ 4.11 test - + + org.codehaus.groovy + groovy + 2.4.15 + + + com.sunyard + proto + 1.0-20220905 + com.sunyard sydapi4j - 1.13.20221212 + 1.12.20220915 org.apache.logging.log4j diff --git a/src/test/java/test/EncryptAndMac.java b/src/test/java/test/EncryptAndMac.java index 9f72c0f..022fe29 100644 --- a/src/test/java/test/EncryptAndMac.java +++ b/src/test/java/test/EncryptAndMac.java @@ -1,9 +1,6 @@ package test; -import cn.hutool.core.collection.ListUtil; -import com.google.common.collect.Lists; import com.sunyard.sge.database.*; -import org.junit.Assert; import java.util.Arrays; import java.util.List; @@ -15,14 +12,14 @@ public class EncryptAndMac { // 路径要以 / 或 \\ 结尾表示目录 String[] pcipList = {"172.1.41.216", "172.1.41.129"}; - int[] iportList = {8080, 8889}; + int[] iportList = {8880, 8889}; SydApi api = new SydApi4Database(); try { api.SYD_Short_Connect_Ex(pcipList, iportList, 1000, 1000); // 密钥索引 - int keyEncIdx = 0; + int keyEncIdx = 1; int keyMacIdx = 1;