Commit f17e0f2c authored by 霍传世's avatar 霍传世

HaiNa---接口

parent 03f27249
......@@ -41,7 +41,9 @@ public class FaceMatchController {
}
}
@PostMapping("/faceMatch/{examConnectionCode}/{idCard}/{zkzNum}")
public ResponseEntity faceMatch(@PathVariable String idCard,@PathVariable String examConnectionCode,@PathVariable String zkzNum,@RequestParam("picName") String picName){
public ResponseEntity faceMatch(@PathVariable String idCard,@PathVariable String examConnectionCode,@PathVariable String zkzNum,@RequestBody String picName){
JSONObject object = new JSONObject(picName);
picName = object.getString("picName");
log.info("faceMatch正在校验-》身份证号:"+idCard+"参加面试编号:"+examConnectionCode+"_人脸照片");
String message = "";
if(check(examConnectionCode,idCard,message)){
......
......@@ -46,6 +46,7 @@ public class CosUtil {
config.put("bucket",bucket);
config.put("region",region);
config.put("allowPrefix", "*");
config.put("allowOrigins","*");
String[] allowActions = new String[]{
"name/cos:PutObject",
"name/cos:PostObject",
......
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