Commit 8f3d12a2 authored by 黎博's avatar 黎博

修改Vcc.java main方法,方便造身份证正反面参数

parent 2196716f
package cn.qg.qaplatform.controller.common;public class SqlController {
}
...@@ -433,20 +433,33 @@ public class Vcc { ...@@ -433,20 +433,33 @@ public class Vcc {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("clarity", 74); // 正面
map.put("multiWarning", "00010010"); // map.put("clarity", 74);
map.put("birth", "19900104"); // map.put("multiWarning", "00010010");
map.put("nation", "汉"); // map.put("birth", "19900104");
map.put("type", "xyqb"); // map.put("nation", "汉");
// map.put("type", "xyqb");
// map.put("code", 0);
// map.put("isShootPagePortrait", true);
// map.put("address", "北京市海淀区码农村22号");
// map.put("idNo", "320101199001040432");
// map.put("orderNo", "12345668");
// map.put("warning", "00010000");
// map.put("msg", "OCR获取成功");
// map.put("name", "张三");
// map.put("sex", "男");
// 反面
map.put("validDate", "20051008-20251008");
map.put("authority", "上海市公安局徐汇分局");
map.put("isShootPagePortrait", false);
map.put("code", 0); map.put("code", 0);
map.put("isShootPagePortrait", true);
map.put("address", "北京市海淀区码农村22号");
map.put("idNo", "320101199001040432");
map.put("orderNo", "123456"); map.put("orderNo", "123456");
map.put("warning", "00010000"); map.put("clarity", 60);
map.put("msg", "OCR获取成功"); map.put("msg", "OCR获取成功");
map.put("name", "张三"); map.put("type", "xyqb");
map.put("sex", "男"); map.put("warning", "00010000");
map.put("multiWarning", "00010000");
String frontBase64Str = Vcc.readTxt("back.txt"); String frontBase64Str = Vcc.readTxt("back.txt");
map.put("base64Str", frontBase64Str); map.put("base64Str", frontBase64Str);
System.out.println(JSON.toJSONString(map)); System.out.println(JSON.toJSONString(map));
......
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