Browse Source

转obj工具类 缺少文件提示优化

dengsixing 2 years ago
parent
commit
ac735de9f9

+ 1 - 1
4dkankan-common-utils/src/main/java/com/fdkankan/common/util/OBJToGLBUtil.java

@@ -108,7 +108,7 @@ public class OBJToGLBUtil {
         LinkedHashSet<String> imgMtl = OBJToGLBUtil.readMtlFile(file.getPath());
         for (String mtlName : imgMtl) {
             if (!imgName.contains(mtlName)) {
-                throw new BusinessException(-1 ,mtlName + "图片缺失!");
+                throw new BusinessException(ErrorCode.FAILURE_CODE_5065);
             }
         }
         return true;