Browse Source

修改upload-multi-pass接口,不请求人脸服务器

tags/B.2.5.0_20231216_base
yk 1 year ago
parent
commit
7957241b5d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      xueyi-modules/xueyi-system/src/main/java/com/xueyi/system/pass/controller/api/DmRecognizedRecordsInnerApiController.java

+ 3
- 3
xueyi-modules/xueyi-system/src/main/java/com/xueyi/system/pass/controller/api/DmRecognizedRecordsInnerApiController.java View File

@@ -3,7 +3,6 @@ package com.xueyi.system.pass.controller.api;
import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.ObjectUtil;
import co.elastic.clients.elasticsearch.ElasticsearchClient;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.xueyi.common.core.web.result.R;
@@ -172,14 +171,15 @@ public class DmRecognizedRecordsInnerApiController extends BaseApiController {
dmResourcesDto.setUrl(url);
dmResourcesDto.setName("stranger");

com.alibaba.fastjson.JSONObject json = faceService.getFaceExtraction("", "", imgBase64);
/**
com.alibaba.fastjson.JSONObject json = faceService.getFaceExtraction("", "", imgBase64);

if (0!=json.getInteger("status")) {
return output(-1, json.getString("errMsg")).toJSON();
} else {
JSONArray obj = json.getJSONArray("result").getJSONObject(0).getJSONArray("faces").getJSONObject(0).getJSONArray("feature");
dmResourcesDto.setFeature(obj.toJSONString());
}
}*/

iDmResourcesService.addOne(dmResourcesDto);
cr.setFaceUrl(url);


Loading…
Cancel
Save