Skip to content

Commit 5b76fa2

Browse files
committed
修改13.5中的blog范例的api,Ctx.Input
1 parent ed29010 commit 5b76fa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ebook/13.5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ DeleteController
124124
}
125125

126126
func (this *DeleteController) Get() {
127-
id, _ := strconv.Atoi(this.Ctx.Params[":id"])
127+
id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"])
128128
blog := GetBlog(id int)
129129
this.Data["Post"] = blog
130130
models.DelBlog(blog)

0 commit comments

Comments
 (0)