|
@@ -82,16 +82,16 @@ public class SceneController extends BaseController{
|
|
|
// 设置响应头,指定文件类型和内容长度
|
|
|
OutputStream os = null;
|
|
|
try {
|
|
|
- String sceneObjPath = String.format(FilePath.OBJ_OSS_PATH, "num")+"/data/scene.json" ;
|
|
|
+ String sceneObjPath = String.format(FilePath.OBJ_OSS_PATH, num)+"/data/scene.json" ;
|
|
|
|
|
|
FileInfoVo fileInfo = uploadToOssUtil.getFileInfo(sceneObjPath);
|
|
|
if(fileInfo == null){
|
|
|
throw new BusinessException(ResultCode.FILE_NOT_EXIST);
|
|
|
}
|
|
|
- String scenePath = String.format(FilePath.OBJ_OSS_PATH, "num");
|
|
|
+ String scenePath = String.format(FilePath.OBJ_OSS_PATH, num);
|
|
|
Long size = uploadToOssUtil.getSize(scenePath);
|
|
|
fileInfo.setSize(size);
|
|
|
- String objPath = String.format(FilePath.OBJ_LOCAL_PATH,environment , "num") ;
|
|
|
+ String objPath = String.format(FilePath.OBJ_LOCAL_PATH,environment , num) ;
|
|
|
File file = new File(objPath +"/"+num + "_hash.txt");
|
|
|
|
|
|
res.setContentType("application/octet-stream");
|