|
@@ -770,19 +770,19 @@ public class StoreInfoController {
|
|
|
@ApiOperation(value = "AI服务-门头识别")
|
|
@ApiOperation(value = "AI服务-门头识别")
|
|
|
@ApiOperationSupport(order = 16)
|
|
@ApiOperationSupport(order = 16)
|
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "storeId", value = "门店id", dataType = "String", paramType = "query", required = true),
|
|
|
|
|
|
|
+ @ApiImplicitParam(name = "storeId", value = "门店用户id", dataType = "String", paramType = "query", required = true),
|
|
|
@ApiImplicitParam(name = "imageUrl", value = "图片URL", dataType = "String", paramType = "query", required = true)
|
|
@ApiImplicitParam(name = "imageUrl", value = "图片URL", dataType = "String", paramType = "query", required = true)
|
|
|
})
|
|
})
|
|
|
@GetMapping("/getStoreOcrData")
|
|
@GetMapping("/getStoreOcrData")
|
|
|
- public R<Map<String, Object>> getStoreOcrData(@RequestParam("storeId") String storeId,
|
|
|
|
|
|
|
+ public R<Map<String, Object>> getStoreOcrData(@RequestParam("storeId") String storeUserId,
|
|
|
@RequestParam("imageUrl") String imageUrl) {
|
|
@RequestParam("imageUrl") String imageUrl) {
|
|
|
- log.info("StoreInfoController.getStoreOcrData?storeId={},imageUrl={}", storeId, imageUrl);
|
|
|
|
|
- if (storeId == null || storeId.trim().isEmpty() || imageUrl == null || imageUrl.trim().isEmpty()) {
|
|
|
|
|
|
|
+ log.info("StoreInfoController.getStoreOcrData?storeId={},imageUrl={}", storeUserId, imageUrl);
|
|
|
|
|
+ if (storeUserId == null || storeUserId.trim().isEmpty() || imageUrl == null || imageUrl.trim().isEmpty()) {
|
|
|
return R.fail("门店ID与图片URL不能为空");
|
|
return R.fail("门店ID与图片URL不能为空");
|
|
|
}
|
|
}
|
|
|
Map<String, Object> ocrData = null;
|
|
Map<String, Object> ocrData = null;
|
|
|
try {
|
|
try {
|
|
|
- ocrData = storeInfoService.getStoreOcrData(storeId, imageUrl);
|
|
|
|
|
|
|
+ ocrData = storeInfoService.getStoreOcrData(storeUserId, imageUrl);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
return R.fail("未查询到OCR识别数据");
|
|
return R.fail("未查询到OCR识别数据");
|
|
|
}
|
|
}
|