From 89ce2bc6b71ea331c219c295074a289d09c808af Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期四, 13 七月 2023 16:06:34 +0800 Subject: [PATCH] 修改车间代码的查询方式,返回正确的车间代码 --- main.go | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 08d8070..a98858d 100644 --- a/main.go +++ b/main.go @@ -17,9 +17,7 @@ func main() { logger.InitLog("kingdee-dbapi.log", "debug", 15, false) - logger.Info("kdingdee-dbapi start!") - - os.Setenv("GODEBUG", "tls10default=1") + logger.Info("kingdee-dbapi start!") config.Load() @@ -49,6 +47,13 @@ // 寰蒋闆呴粦-甯歌 if strings.Contains(path, "msyh.ttf") { os.Setenv("FYNE_FONT", path) + + break + } + // 榛戜綋-甯歌 + if strings.Contains(path, "simhei.ttf") { + os.Setenv("FYNE_FONT", path) + break } } -- Gitblit v1.8.0