|
@@ -185,7 +185,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
uploadMap.put(origFilePath, ossPath + sid + "." + extName);
|
|
|
|
|
|
//切图
|
|
|
- String fragmentCmd = "vips dzsave " + origFilePath + " " + workPath;
|
|
|
+ String fragmentCmd = "vips dzsave --tile-size 511" + origFilePath + " " + workPath;
|
|
|
CmdUtils.callLine(fragmentCmd);
|
|
|
if(!ComputerUtil.checkComputeCompleted(dziPath, 5, 200)){
|
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_5052);
|
|
@@ -216,7 +216,10 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
|
|
|
//上传
|
|
|
- fYunFileService.uploadMulFiles(uploadMap);
|
|
|
+ uploadMap.entrySet().stream().forEach(entry->{
|
|
|
+ fYunFileService.uploadFile(entry.getKey(), entry.getValue());
|
|
|
+ });
|
|
|
+
|
|
|
}finally {
|
|
|
FileUtil.del(workPath);
|
|
|
FileUtil.del(dziPath);
|