|
|
@ -206,6 +206,7 @@ public class OpenServicePlatformServiceImpl implements IOpenServicePlatformServi |
|
|
|
public List<OpenServiceOcr> OcrToSn(String picture){ |
|
|
|
public List<OpenServiceOcr> OcrToSn(String picture){ |
|
|
|
//判断是否为图片流文件, 兼容公司平台进行base64解密
|
|
|
|
//判断是否为图片流文件, 兼容公司平台进行base64解密
|
|
|
|
String requestUrl = snOcrUrl; |
|
|
|
String requestUrl = snOcrUrl; |
|
|
|
|
|
|
|
log.info("调用山能OCR识别请求路径:"+snOcrUrl); |
|
|
|
String result = FileUtil.uploadFile(requestUrl, Base64Decoder.decode(picture)); |
|
|
|
String result = FileUtil.uploadFile(requestUrl, Base64Decoder.decode(picture)); |
|
|
|
if(StringUtils.isBlank(result)){ |
|
|
|
if(StringUtils.isBlank(result)){ |
|
|
|
log.info("调用山能ocr识别失败"); |
|
|
|
log.info("调用山能ocr识别失败"); |
|
|
|