修复部分bug
This commit is contained in:
parent
7535300107
commit
46cecc47ea
18
code.go
18
code.go
@ -22,16 +22,18 @@ var TptProject = Proj{
|
||||
tableName := that.RouterString[1]
|
||||
|
||||
data := that.Db.Get(fileConfig.GetString("table"), "*", Map{"id": that.Session(fileConfig.GetString("table") + "_id").ToCeilInt()})
|
||||
str, inData := that.MakeCodeRouter[hotimeName].Info(tableName, data, that.Db)
|
||||
//str, inData := that.MakeCodeRouter[hotimeName].Info(tableName, data, that.Db)
|
||||
str, _ := that.MakeCodeRouter[hotimeName].Info(tableName, data, that.Db)
|
||||
where := Map{"id": that.RouterString[2]}
|
||||
|
||||
if len(inData) == 1 {
|
||||
inData["id"] = where["id"]
|
||||
where = Map{"AND": inData}
|
||||
} else if len(inData) > 1 {
|
||||
where["OR"] = inData
|
||||
where = Map{"AND": where}
|
||||
}
|
||||
//权限控制,暂时取消
|
||||
//if len(inData) == 1 {
|
||||
// inData["id"] = where["id"]
|
||||
// where = Map{"AND": inData}
|
||||
//} else if len(inData) > 1 {
|
||||
// where["OR"] = inData
|
||||
// where = Map{"AND": where}
|
||||
//}
|
||||
|
||||
re := that.Db.Get(tableName, str, where)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user