Bug: fix the issue that image did not get saved
This commit is contained in:
parent
3ad3679bc8
commit
3b82b08fd0
@ -12,8 +12,9 @@ public class SysFileTypeService {
|
|||||||
/** 文件根路径 */
|
/** 文件根路径 */
|
||||||
private String fileRoot;
|
private String fileRoot;
|
||||||
|
|
||||||
|
|
||||||
// 去掉末尾的路径分隔符
|
// 去掉末尾的路径分隔符
|
||||||
@Value("$skyeye.file-root}")
|
@Value("${skyeye.file-root}")
|
||||||
public void setFileRoot(String fileRoot) {
|
public void setFileRoot(String fileRoot) {
|
||||||
this.fileRoot = fileRoot.endsWith("/") || fileRoot.endsWith("\\") ? fileRoot.substring(0, fileRoot.length() - 1) : fileRoot;
|
this.fileRoot = fileRoot.endsWith("/") || fileRoot.endsWith("\\") ? fileRoot.substring(0, fileRoot.length() - 1) : fileRoot;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
package com.zhangy.skyeye.sar.listen;
|
package com.zhangy.skyeye.sar.listen;
|
||||||
|
|
||||||
|
import com.zhangy.skyeye.common.extend.util.JsonUtil;
|
||||||
import com.zhangy.skyeye.jm.dto.JmAirlineStatusDTO;
|
import com.zhangy.skyeye.jm.dto.JmAirlineStatusDTO;
|
||||||
import com.zhangy.skyeye.jm.entity.JmImage;
|
import com.zhangy.skyeye.jm.entity.JmImage;
|
||||||
import com.zhangy.skyeye.jm.service.JmJobStatusService;
|
import com.zhangy.skyeye.jm.service.JmJobStatusService;
|
||||||
@ -47,7 +48,7 @@ public class SarImageUdpProcessor extends SarAbstractUdpProcessor<SarImagePacket
|
|||||||
JmImage imageInfo = sarImageService.parseImage(group.getSourceIp(), group.getAirlineExecId(), frameData, imageFram);
|
JmImage imageInfo = sarImageService.parseImage(group.getSourceIp(), group.getAirlineExecId(), frameData, imageFram);
|
||||||
// 推送,仅当前有任务时,jobId 和 uavId 不能为空
|
// 推送,仅当前有任务时,jobId 和 uavId 不能为空
|
||||||
if (imageInfo != null) {
|
if (imageInfo != null) {
|
||||||
//log.info("推送图片:" + JsonUtil.toString(imageInfo));
|
log.info("推送图片:" + JsonUtil.toString(imageInfo));
|
||||||
sarBackWsService.sendImg(imageInfo);
|
sarBackWsService.sendImg(imageInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user