Commit 81c2199a authored by 霍传世's avatar 霍传世

HaiNa---接口

parent 3b568b1f
...@@ -51,7 +51,7 @@ public class FaceMatchController { ...@@ -51,7 +51,7 @@ public class FaceMatchController {
JSONObject responseBody = new JSONObject(); JSONObject responseBody = new JSONObject();
responseBody.put("code",500); responseBody.put("code",500);
responseBody.put("message",check(examConnectionCode,idCard).get("message").toString()); responseBody.put("message",check(examConnectionCode,idCard).get("message").toString());
return ResponseEntity.badRequest().body(responseBody.toString()); return ResponseEntity.ok(responseBody.toString());
} }
try{ try{
String[] result = faceMatch.faceMatchBaidu(idCard,picName); String[] result = faceMatch.faceMatchBaidu(idCard,picName);
......
...@@ -15,7 +15,15 @@ class HaiNaFaceToFaceAiApplicationTests { ...@@ -15,7 +15,15 @@ class HaiNaFaceToFaceAiApplicationTests {
@Test @Test
void contextLoads() { void contextLoads() {
System.out.println(appUtil.md5("51096606163")); Integer i = 0;
if(setMessage(i)){
System.out.println(i);
}
}
public boolean setMessage(Integer i){
i = 1;
return true;
} }
} }
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