修改13.5中的blog范例的api,Ctx.Input
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user