Commit faae26e3 by e

去掉不需要用到的文件

parent 627f461b
package com.founder.controller;
public class CertCard {
public static void main(String[] args) {
int hReader = JavaCallCppService.INSTANCE.ICC_Reader_Open("USB1");
System.out.println("hReader="+hReader);
if(hReader <= 0){// 结果大于0表示成功
System.err.println("==打开接口失败==hReader="+hReader+"=======状态码====="+hReader);
return;
}
String filepath = "D:\\zp.bmp";
byte[] pName = new byte[100];
byte[] pSex = new byte[100];
byte[] pNation = new byte[100];
byte[] pBirth = new byte[100];
byte[] pAddress = new byte[100];
byte[] pCertNo = new byte[100];
byte[] pDepartment = new byte[100];
byte[] pEffectDate = new byte[100];
byte[] pExpire = new byte[100];
byte[] pErrMsg = new byte[100];
int ret = JavaCallCppService.INSTANCE.PICC_Reader_ReadIDMsg(hReader,
filepath,
pName,
pSex,
pNation,
pBirth,
pAddress,
pCertNo,
pDepartment,
pEffectDate,
pExpire,
pErrMsg);
System.out.println("ret = " + ret + "\n姓名:"+ new String(pName));
System.out.println("性別:"+ new String(pSex));
System.out.println("民族:"+ new String(pNation));
System.out.println("出生日期:"+ new String(pBirth));
System.out.println("地址:"+ new String(pAddress));
System.out.println("身份证号:"+ new String(pCertNo));
System.out.println("签发机关:"+ new String(pDepartment));
System.out.println("发卡日期:"+ new String(pEffectDate));
System.out.println("有效期限:"+ new String(pExpire));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment