From 1fe0965d93e376fd5ae7392365f2f7e7ce7f9b4f Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Wed, 11 Feb 2026 08:48:37 +0800
Subject: [PATCH] 1. 修改用户为空时,获取不到无人机遥测数据。

---
 ard-work/src/main/java/com/ard/work/component/forest/TyClient.java |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/ard-work/src/main/java/com/ard/work/component/forest/TyClient.java b/ard-work/src/main/java/com/ard/work/component/forest/TyClient.java
index a5f3c23..badc96f 100644
--- a/ard-work/src/main/java/com/ard/work/component/forest/TyClient.java
+++ b/ard-work/src/main/java/com/ard/work/component/forest/TyClient.java
@@ -1,9 +1,6 @@
 package com.ard.work.component.forest;
 
-import com.ard.work.domain.dto.BoxHistoryDTO;
-import com.ard.work.domain.dto.BoxPhotosDTO;
-import com.ard.work.domain.dto.BoxSettingsDTO;
-import com.ard.work.domain.dto.TokenDTO;
+import com.ard.work.domain.dto.*;
 import com.ard.work.domain.receiver.*;
 import com.dtflys.forest.annotation.*;
 
@@ -16,11 +13,12 @@
  * @date 2024年10月21日14:45
  **/
 @Address(source = MyAddressSource.class)
+@BaseRequest(interceptor = ErrorInterceptor.class)
 public interface TyClient {
     /**
      * 获取云盒TOKEN
      */
-    @Post(TyConst.POST_TOKEN)
+    @Post(value=TyConst.POST_TOKEN)
     TyHttpCommonReceiver<AccessTokenReceiver> getToken(@Var("serverId") String serverId, @JSONBody TokenDTO tokenDTO);
 
     /**
@@ -42,13 +40,18 @@
     @Post(value = TyConst.POST_BOX_HISTORY, interceptor = TokenInterceptor.class)
     TyHttpCommonReceiver<List<BoxHistoryReceiver>> getBoxHistory(@Var("serverId") String serverId,
                                                                  @JSONBody BoxHistoryDTO boxHistoryDTO);
-
     /**
      * 获取任务照片
      */
     @Post(value = TyConst.POST_BOX_PHOTOS, interceptor = TokenInterceptor.class)
     TyHttpCommonReceiver<List<BoxPhotosReceiver>> getBoxPhotos(@Var("serverId") String serverId,
                                                                @JSONBody BoxPhotosDTO boxPhotosDTO);
+    /**
+     * 获取任务视频
+     */
+    @Post(value = TyConst.POST_BOX_VIDEOS, interceptor = TokenInterceptor.class)
+    TyHttpCommonReceiver<List<BoxVideosReceiver>> getBoxVideos(@Var("serverId") String serverId,
+                                                               @JSONBody BoxVideosDTO boxVideosDTO);
 
     /**
      * 修改云盒设置

--
Gitblit v1.9.3