|
@@ -51,7 +51,7 @@ public class Idcard {
|
|
|
String accessToken = AuthService.getAuth();
|
|
String accessToken = AuthService.getAuth();
|
|
|
Map<String, Object> ma = new HashMap<>();
|
|
Map<String, Object> ma = new HashMap<>();
|
|
|
// 请求url
|
|
// 请求url
|
|
|
- String url = staticEnvironment.getProperty("idcard");
|
|
|
|
|
|
|
+ String url = staticEnvironment.getProperty("baidu.idcard");
|
|
|
try {
|
|
try {
|
|
|
String imgParam = URLEncoder.encode(imgs, "UTF-8");
|
|
String imgParam = URLEncoder.encode(imgs, "UTF-8");
|
|
|
String param = "id_card_side=" + "front" + "&image=" + imgParam + "&detect_photo=true";
|
|
String param = "id_card_side=" + "front" + "&image=" + imgParam + "&detect_photo=true";
|
|
@@ -82,7 +82,7 @@ public class Idcard {
|
|
|
//// 从redis中获取信息,redis保存时间是20天。
|
|
//// 从redis中获取信息,redis保存时间是20天。
|
|
|
String accessToken = AuthService.getAuth();
|
|
String accessToken = AuthService.getAuth();
|
|
|
// 请求url
|
|
// 请求url
|
|
|
- String url = staticEnvironment.getProperty("idcard");
|
|
|
|
|
|
|
+ String url = staticEnvironment.getProperty("baidu.idcard");
|
|
|
try {
|
|
try {
|
|
|
String imgParam = URLEncoder.encode(image, "UTF-8");
|
|
String imgParam = URLEncoder.encode(image, "UTF-8");
|
|
|
String param = "id_card_side=" + idCardSide + "&image=" + imgParam + "&detect_photo=true";
|
|
String param = "id_card_side=" + idCardSide + "&image=" + imgParam + "&detect_photo=true";
|