From 67f48ad7302f1c10e9880a8e5b74d0da4d033a71 Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Tue, 6 Feb 2024 15:30:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A0=B9=E6=8D=AE=20?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E6=97=B6=E9=97=B4=E8=8C=83=E5=9B=B4=E7=9A=84?= =?UTF-8?q?=20recordInfo=20=E6=9F=A5=E8=AF=A2,=20=E9=A2=84=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E8=A7=86=E9=A2=91=E6=96=87=E4=BB=B6=E5=88=B0=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E6=8C=87=E5=AE=9A=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + .../gb28181/mocking/core/sip/service/VideoCacheManager.java | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 27f14d9..1d7e0d5 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ chmod +x ./package-docker.sh docker run --name gb28181-mocking --rm \ --log-opt max-size=1g \ --network host \ + -v `pwd`/record:/tmp/record \ -v `pwd`/application.yml:/opt/gb28181-docking-platform-mocking/application.yml \ skcks.cn/gb28181-docking-platform-mocking:0.1.0-SNAPSHOT ``` diff --git a/gb28181-mocking-service/src/main/java/cn/skcks/docking/gb28181/mocking/core/sip/service/VideoCacheManager.java b/gb28181-mocking-service/src/main/java/cn/skcks/docking/gb28181/mocking/core/sip/service/VideoCacheManager.java index c349152..a008430 100644 --- a/gb28181-mocking-service/src/main/java/cn/skcks/docking/gb28181/mocking/core/sip/service/VideoCacheManager.java +++ b/gb28181-mocking-service/src/main/java/cn/skcks/docking/gb28181/mocking/core/sip/service/VideoCacheManager.java @@ -54,6 +54,7 @@ public class VideoCacheManager { return StringUtils.joinWith("-", deviceCode, dateFormat(startTime), dateFormat(endTime)); } + @Async(MockingExecutor.EXECUTOR_BEAN_NAME) public void addTask(String deviceCode, Date startTime, Date endTime){ String name = fileName(deviceCode, startTime, endTime); if(tasks.get(name) != null){