|
|
@@ -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); |
|
|
|