降低版本到 1.6

This commit is contained in:
cheney 2022-05-09 16:56:47 +08:00
parent 1ee72d1591
commit 7b0124c877
3 changed files with 58 additions and 5 deletions

View File

@ -13,8 +13,9 @@
<properties>
<vertx>3.4.2</vertx>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<kotlin.version>1.2.31</kotlin.version>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
</properties>
<dependencies>
@ -118,8 +119,8 @@
</execution>
</executions>
<configuration>
<source>8</source>
<target>8</target>
<source>1.6</source>
<target>1.6</target>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<fork>true</fork>

View File

@ -3482,8 +3482,8 @@ public class SydApi4j implements SydApi {
Proto74 proto = new Proto74();
// 填充数据
HashMap<String, Object> packet = new HashMap<>();
HashMap<String, Object> data = new HashMap<>();
HashMap<String, Object> packet = new HashMap<String, Object>();
HashMap<String, Object> data = new HashMap<String, Object>();
packet.put("data", data);
PacketSN sn = PacketSN.gen();

View File

@ -0,0 +1,52 @@
package com.sunyard.sydapi.loadrunner;
import racal.sunyard.main.SydApi4j;
import racal.sunyard.main.SydApiBuilder;
public class ShangTest {
private static final byte[] testData = new byte[ 4 * 1024 ];
private SydApi4j api = null;
public void init() throws ClassNotFoundException, IllegalAccessException, InstantiationException {
api = (SydApi4j) new SydApiBuilder()
.setIp("172.16.18.59")
.setPort( 8889 )
.useDebugMode()
.build();
}
public void hash4(){
api.SM3Hash( testData );
}
public void fun1(){
// byte[] sign = api.attachedSign();
}
public void destroy(){
if (null != this.api ) {
this.api.disconnect();
}
}
public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
System.out.println( SydApi4j.getVersion() );
ShangTest test = new ShangTest();
test.init();
test.hash4();
test.destroy();
}
}