From 541c82410eaad950d17ae0810e50be05d88d3d7b Mon Sep 17 00:00:00 2001 From: hoteas Date: Fri, 21 Oct 2022 04:28:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code.go | 2 +- code/makecode.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code.go b/code.go index 060dbfc..9d3d696 100644 --- a/code.go +++ b/code.go @@ -46,7 +46,7 @@ var TptProject = Proj{ continue } - if (column["list"] == nil || column.GetBool("list")) && column.GetString("link") != "" { + if (column["info"] == nil || column.GetBool("info")) && column.GetString("link") != "" { seStr := "id," + column.GetString("value") if that.MakeCodeRouter[hotimeName].TableColumns[column.GetString("link")]["phone"] != nil { seStr = seStr + ",phone" diff --git a/code/makecode.go b/code/makecode.go index 19fba8d..6a38930 100644 --- a/code/makecode.go +++ b/code/makecode.go @@ -208,7 +208,7 @@ func (that *MakeCode) Db2JSON(db *db.HoTimeDB, config Map) { for _, ColumnName := range that.RuleConfig { if (ColumnName.GetBool("strict") && coloum.GetString("name") == ColumnName.GetString("name")) || (!ColumnName.GetBool("strict") && strings.Contains(coloum.GetString("name"), ColumnName.GetString("name"))) || - (info.GetString("name")+"."+coloum.GetString("name") == ColumnName.GetString("name")) { + (v.GetString("name")+"."+coloum.GetString("name") == ColumnName.GetString("name")) { //全部都不需要则不加入 if ColumnName.GetBool("edit") == false && ColumnName.GetBool("list") == false && ColumnName.GetBool("info") == false { coloum["notUse"] = true