...
|
...
|
@@ -34,10 +34,10 @@ public class SknImageVectorsController { |
|
|
@ResponseBody
|
|
|
public SearchApiResult searchSknByPhoto(@RequestBody JSONObject jsonObject) {
|
|
|
try {
|
|
|
String vectors_32 = jsonObject.get("vectors")==null?null:jsonObject.get("vectors").toString();
|
|
|
String vectors_32 = jsonObject.get(VECTORS_32_KEY)==null?null:jsonObject.get(VECTORS_32_KEY).toString();
|
|
|
String vectors_128 = jsonObject.get(VECTORS_128_KEY)==null?null:jsonObject.get(VECTORS_128_KEY).toString();
|
|
|
if (StringUtils.isBlank(vectors_32)&&StringUtils.isBlank(vectors_128)) {
|
|
|
return new SearchApiResult().setCode(400).setMessage("vectors_32与vectors_128不能都为空");
|
|
|
if (StringUtils.isBlank(vectors_32)||StringUtils.isBlank(vectors_128)) {
|
|
|
return new SearchApiResult().setCode(400).setMessage("vectors_32或vectors_128不能为空");
|
|
|
}
|
|
|
Map<String, String> paramMap = new HashMap<>();
|
|
|
paramMap.put(VECTORS_32_KEY, vectors_32);
|
...
|
...
|
|