|
@@ -190,9 +190,7 @@ public class HouseController extends BaseController {
|
|
|
ossVerticalImageLowMap.put(imageLowPath, ossVerticalLowPath);
|
|
|
try {
|
|
|
ImageResolutionRate tmpResolutionRate = addAndGetResolutionRate(file , directoryName , ossVerticalHighPath , house.getId());
|
|
|
- if(ImageResolutionRate.FOUR_K.equals(tmpResolutionRate)){
|
|
|
- maxResolutionRate = tmpResolutionRate;
|
|
|
- }
|
|
|
+ maxResolutionRate = tmpResolutionRate;
|
|
|
needSendMqMsg = true;
|
|
|
} catch (IOException e) {
|
|
|
needSendMqMsg = false;
|
|
@@ -293,10 +291,10 @@ public class HouseController extends BaseController {
|
|
|
filename = fileNameWithoutPostfix + ".jpg";
|
|
|
log.info("照片的格式写成了大写,需要转成小写:{}" , filename);
|
|
|
}
|
|
|
- // 检查一下,测试时,可能会没有"_"
|
|
|
- if (!filename.contains("_")) {
|
|
|
+ // 检查一下,生成模型的照片名称不能有"-",否则生成模型会出现问题
|
|
|
+ if (filename.contains("-")) {
|
|
|
log.error("filename: {}", filename);
|
|
|
- throw new BaseRuntimeException(MsgCode.e_COMMON_3003, "图片命名不符合要求,需要类型+下划线");
|
|
|
+ throw new BaseRuntimeException(MsgCode.e_COMMON_3003, "图片命名不符合要求,不能包含符号-,请使用_");
|
|
|
}
|
|
|
if (RegexpUtils.isContainChinese(filename)) {
|
|
|
log.error("图片名称不允许中文字符: {}", filename);
|