From b5e236e28dee3e9481a48c615be22d70df44a42c Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期二, 19 十一月 2019 15:25:49 +0800 Subject: [PATCH] add log --- controllers/camera.go | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/controllers/camera.go b/controllers/camera.go index 83646ba..374accf 100644 --- a/controllers/camera.go +++ b/controllers/camera.go @@ -85,6 +85,7 @@ err := c.BindJSON(&cam) if err != nil { + logger.Debug("err:",err) util.ResponseFormat(c, code.RequestParamError, "鍙傛暟閿欒") return } @@ -293,6 +294,7 @@ // @Security ApiKeyAuth // @Summary 鍒囨崲鎽勫儚鏈鸿繍琛屽疄鏃舵垨杞鐨勫紑鍏� // @Description 鍒囨崲鎽勫儚鏈鸿繍琛屽疄鏃舵垨杞鐨勫紑鍏� +// @Accept x-www-form-urlencoded // @Produce json // @Tags camera // @Param cameraId formData string true "鎽勫儚鏈篿d" -- Gitblit v1.8.0