From adb478c329c669f8709593d16dddffc0505e71ee Mon Sep 17 00:00:00 2001 From: xuxiuxi <554325746@qq.com> Date: 星期三, 10 七月 2019 16:04:42 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- controllers/camera.go | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/camera.go b/controllers/camera.go index 2a2789e..9956bc1 100644 --- a/controllers/camera.go +++ b/controllers/camera.go @@ -4,6 +4,7 @@ "encoding/json" "fmt" "strconv" + "webserver/extend/logger" "github.com/gin-gonic/gin" @@ -20,7 +21,7 @@ Name string `json:"name"` Type int `json:"type" ` Addr string `json:"addr"` - Areaid uint `json:"areaid"` + Areaid string `json:"areaid"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` Rtsp string `json:"rtsp"` @@ -103,7 +104,7 @@ func (ac CameraController) CameraDel(c *gin.Context) { var api dbapi.CameraApi cid := c.Param("cid") - + logger.Debug("CameraDel.cid:",cid) if api.CameraDelete(cid) { util.ResponseFormat(c, code.Success, "鍒犻櫎鎴愬姛") return -- Gitblit v1.8.0