diff --git a/code.go b/code.go index 8b677e1..8d4fd81 100644 --- a/code.go +++ b/code.go @@ -546,11 +546,11 @@ var TptProject = Proj{ column := that.MakeCodeRouter[hotimeName].TableColumns[tableName][k] - if column == nil { + if column == nil || column["link"] == nil && !(column["list"] == nil || column["list"] == true) { continue } - if (column["list"] == nil || column["list"] == true) && column["name"] == "parent_id" && column.GetString("link") != "" { + if column["name"] == "parent_id" { parentC := that.Db.Get(column.GetString("link"), column.GetString("value"), Map{"id": v.GetCeilInt(k)}) v[column.GetString("link")+"_"+column.GetString("name")+"_"+column.GetString("value")] = "" @@ -559,8 +559,7 @@ var TptProject = Proj{ } } - if column.GetString("link") != "" && - column.GetString("name") != "parent_id" { + if column.GetString("name") != "parent_id" { reStr := "" if column.GetString("value") == "name" && that.MakeCodeRouter[hotimeName].TableColumns[column.GetString("link")]["nickname"] != nil {