src/main/java/com/dji/sample/patches/utils/TimerUtil.java
@@ -247,6 +247,7 @@ */ public static void sendPostWithFileAndParameter(String filePath, String taskId) throws IOException { // 创建 RestTemplate 实例 try{ RestTemplate restTemplate = new RestTemplate(); // 读取文件内容为字节数组 @@ -271,6 +272,9 @@ HttpMethod.POST, requestEntity, String.class); }catch (Exception e){ throw new IllegalArgumentException("db推送失败"+e.getMessage()); } } private static MultiValueMap<String, Object> buildRequestBody(String taskId, byte[] fileContent, String filePath) {