Selaa lähdekoodia

fix: 修正一个bug

WANGKANG 8 kuukautta sitten
vanhempi
sitoutus
2f6c85f6aa

+ 1 - 3
taais-admin/src/main/resources/application-dev.yml

@@ -1,9 +1,7 @@
 server:
   video_stable_start_url: http://localhost:11002/video_stable
   video_stable_stop_url: http://localhost:11002/video_stable_stop
-  to_infrared_stop_url: http://localhost:11002/to_infrared_stop
-  track_sequence_stop_url: http://localhost:11003/track_sequence_stop
-  target_detection_stop_url: http://localhost:11003/target_detection_stop
+  task_stop_url: http://localhost:11003/stop
 
 # 数据源配置
 spring:

+ 2 - 2
taais-admin/src/main/resources/application.yml

@@ -10,7 +10,7 @@ taais:
   demoEnabled: true
   # 文件路径 示例( Windows配置D:/km/uploadPath,Linux配置 /home/km/uploadPath)
   # profile: D:/taais/uploadPath
-  profile: /home/ObjectDetection_Web
+  profile: D:/home/ObjectDetection_Web
   # 获取ip地址开关
   addressEnabled: false
   video_stable_url: http://localhost:11001/video_stable
@@ -263,7 +263,7 @@ sa-token:
   timeout: 604800
   # 多端不同 token 有效期 可查看 LoginHelper.loginByDevice 方法自定义
   # token最低活跃时间 (指定时间无操作就过期) 单位: 秒
-  active-timeout: 1800
+  active-timeout: 604800
   # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
   is-concurrent: true
   # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)

+ 1 - 1
taais-modules/taais-biz/src/main/java/com/taais/biz/service/impl/TrackSequenceServiceImpl.java

@@ -271,7 +271,7 @@ public class TrackSequenceServiceImpl extends BaseServiceImpl<TrackSequenceMappe
 
         if (BizConstant.AlgorithmType.REASONING.equals(algorithmConfigTrack.getType())) {
             if(algorithmModelTrack.getModelName().startsWith("masc") || algorithmModelTrack.getModelName().startsWith("MASC")) {
-                String modelPath = algorithmModelTrack.getModelAddress() + File.separator + algorithmModelTrack.getModelName();
+                String modelPath = algorithmModelTrack.getModelAddress() + File.separator + algorithmModelTrack.getModelName().substring(5);
                 startToInfraredTask.setModel_path(modelPath);
             }
             else if(algorithmModelTrack.getModelName().startsWith("cat") || algorithmModelTrack.getModelName().startsWith("CAT")) {