Commit 03f27249 authored by 霍传世's avatar 霍传世

HaiNa---接口

parent c97788c9
......@@ -35,7 +35,7 @@ public class CommitmentLetterController {
JSONObject responseBody = new JSONObject();
responseBody.put("code",500);
responseBody.put("message","承诺书上传失败");
return ResponseEntity.badRequest().body(responseBody);
return ResponseEntity.badRequest().body(responseBody.toString());
}
}
}
......@@ -31,13 +31,13 @@ public class FaceMatchController {
JSONObject responseBody = new JSONObject();
responseBody.put("code",200);
responseBody.put("message","上传成功");
return ResponseEntity.ok(responseBody);
return ResponseEntity.ok(responseBody.toString());
}catch (Exception e){
log.info("准考证:"+zkzNum+"参加面试编号:"+examConnectionCode+"上传实时人脸照片失败");
JSONObject responseBody = new JSONObject();
responseBody.put("code",500);
responseBody.put("message","上传人脸照片失败");
return ResponseEntity.badRequest().body(new JSONObject().toString());
return ResponseEntity.badRequest().body(responseBody.toString());
}
}
@PostMapping("/faceMatch/{examConnectionCode}/{idCard}/{zkzNum}")
......@@ -48,7 +48,7 @@ public class FaceMatchController {
JSONObject responseBody = new JSONObject();
responseBody.put("code",500);
responseBody.put("message",message);
return ResponseEntity.badRequest().body(responseBody);
return ResponseEntity.badRequest().body(responseBody.toString());
}
String[] result = faceMatch.faceMatchBaidu(idCard,picName);
if(result[0].equals("1")){
......
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