From 63e024e77d8e0fefd8818f1b744cbfc5e36b50fe Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期六, 14 十二月 2019 14:56:32 +0800 Subject: [PATCH] fix localconfig --- 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