代码小纠错

This commit is contained in:
nivance
2015-11-28 14:13:35 +08:00
parent e3a38152f2
commit 70c673aa67
2 changed files with 2 additions and 2 deletions

View File

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

View File

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