|
|
@@ -68,7 +68,7 @@ public class JuheServiceUtil {
|
|
|
public static FaceCompareEntity URLPost(String idCard, String realName, String base64,FaceCompareEntity faceCompareEntity) {
|
|
|
faceCompareEntity.setName(realName);
|
|
|
faceCompareEntity.setIdCard(idCard);
|
|
|
- faceCompareEntity.setType("人脸核身");
|
|
|
+ faceCompareEntity.setType("1");
|
|
|
String response = EMPTY;
|
|
|
PostMethod postMethod = null;
|
|
|
try {
|
|
|
@@ -87,6 +87,8 @@ public class JuheServiceUtil {
|
|
|
//设置结果 可能成功也可能失败
|
|
|
String reason = jsonObj.getString("reason");
|
|
|
JSONObject result = jsonObj.getJSONObject("result");;
|
|
|
+ faceCompareEntity.setOrderId(result.getString("orderid"));
|
|
|
+
|
|
|
if (! "成功".equals(reason)){
|
|
|
faceCompareEntity.setMessage(reason);
|
|
|
faceCompareEntity.setResult(0);
|