From 08ab90c17f53906b3469dfbac40d5a1de1991830 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 04 十二月 2019 20:19:39 +0800
Subject: [PATCH] rm glog

---
 controllers/camera.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/controllers/camera.go b/controllers/camera.go
index b41282c..73e1e88 100644
--- a/controllers/camera.go
+++ b/controllers/camera.go
@@ -339,14 +339,14 @@
 		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 {
 			var file protomsg.FileAnalysis
 			bytes, _ := json.Marshal(d)
 			err := json.Unmarshal(bytes, &file)
-			if err !=nil {
+			if err == nil {
 				util.ResponseFormat(c, code.Success, map[string]string{
 					"cameraId": cid,
 					"snapshotUrl": file.SnapshotUrl,

--
Gitblit v1.8.0