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