From 70c673aa6799866824c3c8df030a127f13195f0b Mon Sep 17 00:00:00 2001 From: nivance Date: Sat, 28 Nov 2015 14:13:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=B0=8F=E7=BA=A0=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- de/13.5.md | 2 +- zh/13.5.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/de/13.5.md b/de/13.5.md index 3f544075..e011b8b0 100644 --- a/de/13.5.md +++ b/de/13.5.md @@ -151,7 +151,7 @@ type DeleteController struct { func (this *DeleteController) Get() { id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"]) - blog := models.GetBlog(id int) + blog := models.GetBlog(id) this.Data["Post"] = blog models.DelBlog(blog) this.Ctx.Redirect(302, "/") diff --git a/zh/13.5.md b/zh/13.5.md index 53fdd17e..803041ce 100644 --- a/zh/13.5.md +++ b/zh/13.5.md @@ -126,7 +126,7 @@ DeleteController func (this *DeleteController) Get() { id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"]) - blog := models.GetBlog(id int) + blog := models.GetBlog(id) this.Data["Post"] = blog models.DelBlog(blog) this.Ctx.Redirect(302, "/")