From 91ddf643bb2bd271e2660c0db9865866371caa41 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 26 十月 2023 15:57:20 +0800 Subject: [PATCH] standbytime增加默认值 --- conf/config.go | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/conf/config.go b/conf/config.go index 53f53ea..1888f21 100644 --- a/conf/config.go +++ b/conf/config.go @@ -123,6 +123,9 @@ if err := Viper.Unmarshal(&Conf); err != nil { log.Fatalf("Unmarshal err:%v", err) } + if Conf.PLC.StandbyTime == 0 { + Conf.PLC.StandbyTime = 300 //5鍒嗛挓 + } ShowConfig() } -- Gitblit v1.8.0