From 9ce7c15c897e74c002fd33c07822a6b8a27aabe9 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期五, 05 七月 2019 13:28:04 +0800 Subject: [PATCH] fix bug --- controllers/camera.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/controllers/camera.go b/controllers/camera.go index 20ec0c6..2a2789e 100644 --- a/controllers/camera.go +++ b/controllers/camera.go @@ -84,7 +84,7 @@ return } paramBody := util.Struct2Map(cam) - if api.CameraAdd(paramBody) { + if api.CameraUpdate(paramBody) { util.ResponseFormat(c, code.Success, cam) return } -- Gitblit v1.8.0