修改6A指令对应的接口
This commit is contained in:
parent
c181ffd067
commit
bd3037786f
@ -2113,7 +2113,7 @@ public class SydApi4j implements SydApi {
|
|||||||
HashMap<String, Object> data = new HashMap<String, Object>();
|
HashMap<String, Object> data = new HashMap<String, Object>();
|
||||||
data.put("alg$option", nAlg - 0x30);
|
data.put("alg$option", nAlg - 0x30);
|
||||||
data.put("certificateModel$option", 0);
|
data.put("certificateModel$option", 0);
|
||||||
data.put("certificateSn", certSerial);
|
data.put("certificateSn", certSerial.getBytes());
|
||||||
data.put("keyType", "X");
|
data.put("keyType", "X");
|
||||||
packet.put("data", data);
|
packet.put("data", data);
|
||||||
// 渲染发送 耗时长
|
// 渲染发送 耗时长
|
||||||
|
|||||||
@ -4,7 +4,6 @@ import com.sunyard.RetWrap;
|
|||||||
import com.sunyard.SydApi;
|
import com.sunyard.SydApi;
|
||||||
import com.sunyard.cert.X509;
|
import com.sunyard.cert.X509;
|
||||||
import com.sunyard.proto.Util;
|
import com.sunyard.proto.Util;
|
||||||
import com.sunyard.sydapi.util.PrintUtil;
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@ -16,6 +15,9 @@ import java.io.*;
|
|||||||
import static com.sunyard.sydapi.util.PrintUtil.printByteArray;
|
import static com.sunyard.sydapi.util.PrintUtil.printByteArray;
|
||||||
import static com.sunyard.sydapi.util.PrintUtil.printRetWrap;
|
import static com.sunyard.sydapi.util.PrintUtil.printRetWrap;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所有方法的测试类
|
||||||
|
*/
|
||||||
public class TestAllMethods {
|
public class TestAllMethods {
|
||||||
|
|
||||||
SydApi4j api;
|
SydApi4j api;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user