From 9c8190b54e238fc0496d5fb10f514c9cf2b23572 Mon Sep 17 00:00:00 2001 From: hoteas <等> Date: Mon, 25 Apr 2022 20:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=99=AE=E9=80=9A=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E7=B1=BB=E5=9E=8B=EF=BC=8C=E4=BB=A5=E5=8F=8A=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=AF=8C=E6=96=87=E6=9C=AC=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/makecode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/makecode.go b/code/makecode.go index 0045726..7bbcb9e 100644 --- a/code/makecode.go +++ b/code/makecode.go @@ -515,7 +515,7 @@ func (that *MakeCode) Db2JSON(db *db.HoTimeDB, config Map) { tempC := that.TableConfig.GetMap(tableName).GetSlice("columns") isGet := true for k2, _ := range tempC { - if strings.Contains(tempC.GetMap(k2).GetString("name"), "name") { + if strings.Contains(tempC.GetMap(k2).GetString("name"), "name") || strings.Contains(tempC.GetMap(k2).GetString("name"), "title") { v["value"] = tempC.GetMap(k2).GetString("name") isGet = false break