增加表关联新建功能,同时修复数据库bug
This commit is contained in:
@@ -7,8 +7,8 @@ import (
|
||||
|
||||
var categoryCtr = Ctr{
|
||||
"info": func(that *Context) {
|
||||
//parentId:=ObjToInt(that.Req.FormValue("parent_id"))
|
||||
parentId := ObjToInt(that.RouterString[2])
|
||||
parentId := ObjToInt(that.Req.FormValue("id"))
|
||||
//parentId := ObjToInt(that.RouterString[2])
|
||||
if parentId == 0 {
|
||||
parentId = 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user