|
@@ -877,12 +877,13 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
// log.error("details解密报错", e);
|
|
// log.error("details解密报错", e);
|
|
// return ResultData.error(ErrorCode.PARAM_FORMAT_ERROR);
|
|
// return ResultData.error(ErrorCode.PARAM_FORMAT_ERROR);
|
|
// }
|
|
// }
|
|
- String details = param.getDetails();
|
|
|
|
- SendCallAlgorithmDetail detail = JSON.parseObject(details, SendCallAlgorithmDetail.class);
|
|
|
|
|
|
+ SendCallAlgorithmDetail detail = param.getDetails();
|
|
Integer fileChunkSum = detail.getFileChunkSum();
|
|
Integer fileChunkSum = detail.getFileChunkSum();
|
|
-
|
|
|
|
-
|
|
|
|
String uuid = detail.getUuid();
|
|
String uuid = detail.getUuid();
|
|
|
|
+ if(Objects.isNull(fileChunkSum) || StrUtil.isBlank(uuid)){
|
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED.code(), "details参数中fileChunkSum和uuid不能为空");
|
|
|
|
+ }
|
|
|
|
+
|
|
String snCode = uuid.split("_")[0];
|
|
String snCode = uuid.split("_")[0];
|
|
String parentPath = sendCallAlgorithmPath.concat(uuid);
|
|
String parentPath = sendCallAlgorithmPath.concat(uuid);
|
|
// if(FileUtil.exist(parentPath)){
|
|
// if(FileUtil.exist(parentPath)){
|