This commit is contained in:
2023-03-16 13:55:24 +08:00
parent 93228bf1ec
commit 48da09b4ed

View File

@@ -197,8 +197,8 @@ public class TransientServiceImpl implements TransientService {
cfgPath = OssPath.WAVE_DIR + ip + StrUtil.SLASH + waveName + GeneralConstant.CFG; cfgPath = OssPath.WAVE_DIR + ip + StrUtil.SLASH + waveName + GeneralConstant.CFG;
datPath = OssPath.WAVE_DIR + ip + StrUtil.SLASH + waveName + GeneralConstant.DAT; datPath = OssPath.WAVE_DIR + ip + StrUtil.SLASH + waveName + GeneralConstant.DAT;
try ( try (
InputStream cfgStream = obsUtil.fileDownload(cfgPath); InputStream cfgStream = obsUtil.downloadStream(cfgPath);
InputStream datStream = obsUtil.fileDownload(datPath) InputStream datStream = obsUtil.downloadStream(datPath)
) { ) {
if (Objects.isNull(cfgStream) || Objects.isNull(datStream)) { if (Objects.isNull(cfgStream) || Objects.isNull(datStream)) {
throw new BusinessException(EventResponseEnum.ANALYSEWAVE_NOT_FOUND); throw new BusinessException(EventResponseEnum.ANALYSEWAVE_NOT_FOUND);