feat:拓恒航线文件导入默认航点航线
This commit is contained in:
parent
a87cf1f88d
commit
93025e61a2
|
|
@ -121,13 +121,14 @@ public class AirlineFileServiceImpl implements IAirlineFileService {
|
|||
R<String> fileUrl = remoteFileService.uploadFileByData(UUID.randomUUID().toString(), "waypoints", new String(file.getBytes()));
|
||||
dto.setFileUrl(fileUrl.getData());
|
||||
// TODO 拓恒默认0,后续想办法优化中
|
||||
|
||||
String airVendor = "0";
|
||||
String airType = "1";
|
||||
String airSubType = "0"; // 默认Fm003,的type为1
|
||||
dto.setAirVendor(airVendor);
|
||||
// 无人机的领域默认为0
|
||||
dto.setAirType(String.format("0-%s-%s", airType, airSubType));
|
||||
|
||||
dto.setType("waypoint");
|
||||
return dto;
|
||||
} else {
|
||||
throw new BaseException("不支持的文件格式,请上传KMZ或Waypoints文件");
|
||||
|
|
|
|||
Loading…
Reference in New Issue