|
@@ -92,7 +92,7 @@ public class BaseService {
|
92
|
92
|
public String ossAddModel(MultipartFile file, String s) {
|
93
|
93
|
String fileName = file.getOriginalFilename();
|
94
|
94
|
String suffix = fileName == null ? "" : fileName.substring(fileName.lastIndexOf(".") + 1);
|
95
|
|
- if (!suffix.equals("obj") && !suffix.equals("fbx"))
|
|
95
|
+ if (!suffix.equals("obj") && !suffix.equals("fbx") && !suffix.equals("FBX"))
|
96
|
96
|
throw new RuntimeException("上传文件类型必须是obj、fbx格式的压缩文件");
|
97
|
97
|
if (aliOSSUtils.ossCheckCapacity(s) + file.getSize() >= 21474836480L)
|
98
|
98
|
throw new RuntimeException("容量已满,无法上传文件");
|