|
@@ -3410,7 +3410,11 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
@Override
|
|
@Override
|
|
public ResultData uploadObjAndImg(String sceneNum, MultipartFile file) throws Exception{
|
|
public ResultData uploadObjAndImg(String sceneNum, MultipartFile file) throws Exception{
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
|
|
|
+ throw new BusinessException(ServerCode.PARAM_REQUIRED, "num");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(!file.getOriginalFilename().endsWith(".zip")){
|
|
|
|
+ throw new BusinessException(ErrorCode.FAILURE_CODE_7015);
|
|
}
|
|
}
|
|
|
|
|
|
ScenePro scenePro = this.findBySceneNum(sceneNum);
|
|
ScenePro scenePro = this.findBySceneNum(sceneNum);
|