From cecfe3aafb8424e74b6b4fab0f212c88f025af18 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期五, 13 十二月 2019 18:16:11 +0800 Subject: [PATCH] getDevInfo ret CutVideoLen --- controllers/camera.go | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/controllers/camera.go b/controllers/camera.go index 3b62747..882e043 100644 --- a/controllers/camera.go +++ b/controllers/camera.go @@ -339,7 +339,7 @@ util.ResponseFormat(c, code.RequestParamError, "鍙傛暟鏈夎") return } - if strings.HasPrefix(cid, File_Video_Id_Pre) || strings.HasPrefix(cid, File_Video_Id_Pre) || strings.HasPrefix(cid, File_Video_Id_Pre) { + if strings.HasPrefix(cid, File_Video_Id_Pre) || strings.HasPrefix(cid, File_Img_Id_Pre) || strings.HasPrefix(cid, File_Audio_Id_Pre) { var fileApi dbapi.FileAnalysisApi b, d := fileApi.Show(cid) if b { @@ -351,6 +351,7 @@ "cameraId": cid, "snapshotUrl": file.SnapshotUrl, }) + return } else { util.ResponseFormat(c, code.ComError, "鏇存柊澶辫触") return -- Gitblit v1.8.0