From 7535300107ae965708d94b1c91d1e1464bd7137a Mon Sep 17 00:00:00 2001 From: hoteas Date: Thu, 17 Nov 2022 17:17:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/makecode.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/makecode.go b/code/makecode.go index 85906a9..6f3e949 100644 --- a/code/makecode.go +++ b/code/makecode.go @@ -175,8 +175,9 @@ func (that *MakeCode) Db2JSON(db *db.HoTimeDB, config Map) { if coloum == nil { //根据类型判断真实类型 for k, v1 := range ColumnDataType { - if strings.Contains(info.GetString("name"), k) || strings.Contains(info.GetString("type"), k) { + if strings.Contains(info.GetString("type"), k) { info["type"] = v1 + break } }