|
|
|
@ -89,6 +89,8 @@ public class OcrIdentifyDetailController extends JeecgController<OcrIdentifyDeta
|
|
|
|
|
if (StringUtils.isNotBlank(record.getImageUrl())&&"customer_test".equals(systemProjectEnv)) {
|
|
|
|
|
//客户测试服务器
|
|
|
|
|
if (!record.getImageUrl().contains("http:")&&!record.getImageUrl().contains("https:")) {
|
|
|
|
|
String imagePreviewUrl="http://47.103.213.109:8072/files"+record.getImageUrl();
|
|
|
|
|
record.setImagePreviewUrl(imagePreviewUrl);
|
|
|
|
|
//压缩图片
|
|
|
|
|
if (StringUtils.isNotBlank(record.getThumbnailImageUrl())) {
|
|
|
|
|
File file=new File(record.getThumbnailImageUrl());
|
|
|
|
@ -100,13 +102,12 @@ public class OcrIdentifyDetailController extends JeecgController<OcrIdentifyDeta
|
|
|
|
|
//虚线图片
|
|
|
|
|
if (StringUtils.isNotBlank(record.getDrawDashedImageUrl())) {
|
|
|
|
|
File file=new File(record.getDrawDashedImageUrl());
|
|
|
|
|
//当原图片存在时.
|
|
|
|
|
//当虚线图片存在时,替换原图字段
|
|
|
|
|
if (file.exists()) {
|
|
|
|
|
record.setDrawDashedImagePreviewUrl("http://47.103.213.109:8072/files"+record.getDrawDashedImageUrl());
|
|
|
|
|
record.setImagePreviewUrl("http://47.103.213.109:8072/files"+record.getDrawDashedImageUrl());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
String imagePreviewUrl="http://47.103.213.109:8072/files"+record.getImageUrl();
|
|
|
|
|
record.setImagePreviewUrl(imagePreviewUrl);
|
|
|
|
|
}else{
|
|
|
|
|
record.setImagePreviewUrl(record.getImageUrl());
|
|
|
|
|
}
|
|
|
|
|