|
@@ -48,7 +48,7 @@ public class FileConvertController extends BaseController {
|
|
|
}
|
|
|
file.transferTo(new File(srcPath));
|
|
|
String type = FileTypeUtil.getType(srcFile);
|
|
|
- if("txt".equals(type)){
|
|
|
+ if(!"txt".equals(type)){
|
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_7007, "txt");
|
|
|
}
|
|
|
CreateObjUtil.convertTxtToVisionmodeldata(srcPath, targetPath);
|