From c6b1cadc0214c6791a5c5bcc62ab57601e38f457 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期四, 13 八月 2020 11:31:08 +0800 Subject: [PATCH] add db restriction --- controllers/code.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/controllers/code.go b/controllers/code.go index 5319d49..dbae803 100644 --- a/controllers/code.go +++ b/controllers/code.go @@ -28,7 +28,7 @@ } else { resp.Success= false resp.Status= http.StatusBadRequest - resp.Data= err.Error() + resp.Message= err.Error() } } c.Data["json"] = resp -- Gitblit v1.8.0