From 8a1384b454aebde7322d3b22029666d748494572 Mon Sep 17 00:00:00 2001 From: zerob13 Date: Thu, 13 Feb 2014 11:23:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B913.5=E4=B8=AD=E7=9A=84blog?= =?UTF-8?q?=E8=8C=83=E4=BE=8B=E7=9A=84api=EF=BC=8CCtx.Input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ebook/13.5.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebook/13.5.md b/ebook/13.5.md index f8f80988..b433d12f 100644 --- a/ebook/13.5.md +++ b/ebook/13.5.md @@ -124,7 +124,7 @@ DeleteController } func (this *DeleteController) Get() { - id, _ := strconv.Atoi(this.Ctx.Params[":id"]) + id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"]) blog := GetBlog(id int) this.Data["Post"] = blog models.DelBlog(blog)