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, "/")