From 5f8cefce6c5c2bdbdabb6388cf72d86f79e1b531 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 31 八月 2023 18:06:40 +0800
Subject: [PATCH] 加载plc写入地址换个位置

---
 main.go |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/main.go b/main.go
index 97abfeb..927364e 100644
--- a/main.go
+++ b/main.go
@@ -7,6 +7,7 @@
 	"apsClient/nsq"
 	"apsClient/pkg/logx"
 	"apsClient/router"
+	"apsClient/service/plc_address"
 	"fmt"
 	"net/http"
 	"os"
@@ -34,7 +35,8 @@
 		logx.Errorf("crontab task Init err:%v", err)
 		return
 	}
-
+	//鍔犺浇plc鍐欏叆鍦板潃
+	plc_address.LoadAddressFromFile()
 	go shutdown()
 	logx.Infof("apsClient start serve...")
 	server := &http.Server{

--
Gitblit v1.8.0