From 5b112d6b13cc6a1cc530c1b57835b35a592226ec Mon Sep 17 00:00:00 2001 From: neargle Date: Mon, 2 Apr 2018 14:42:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=E6=89=80=E6=9C=89?= =?UTF-8?q?=E6=9C=AA=E5=A4=84=E7=90=86=E5=91=8A=E8=AD=A6=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/controllers/notice.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/controllers/notice.go b/web/controllers/notice.go index d67c7f9..cf16b36 100755 --- a/web/controllers/notice.go +++ b/web/controllers/notice.go @@ -94,6 +94,8 @@ func (c *NoticeController) ChangeStatus() { if err != nil { beego.Error("Model UpdateAll", err) res = false + } else { + res = true } } else { res = cli.ChangeStatusbyId(form.Id, form.Status)