Commit 2196716f authored by 黎博's avatar 黎博

修改Vcc.java的main方法,方便打印身份证正反面的base64字符串

parent 1bc533f5
......@@ -7,6 +7,7 @@ import cn.qg.qaplatform.utils.JsonTransUtils;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.jayway.jsonpath.JsonPath;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.io.ClassPathResource;
......@@ -431,9 +432,23 @@ public class Vcc {
}
public static void main(String[] args) throws Exception {
Map<String, String> loginResult = login("vcc3", "18300000418", "214", "214");
String uuid = loginResult.get("uuid");
String riskNo = getRiskNo("vcc3", uuid);
vccWindControlCreditCallback("vcc3", "1", riskNo, true, 10000);
Map<String, Object> map = new HashMap<>();
map.put("clarity", 74);
map.put("multiWarning", "00010010");
map.put("birth", "19900104");
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", "123456");
map.put("warning", "00010000");
map.put("msg", "OCR获取成功");
map.put("name", "张三");
map.put("sex", "男");
String frontBase64Str = Vcc.readTxt("back.txt");
map.put("base64Str", frontBase64Str);
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