From e67802cd15e273da46bfb734e339a947b7d1eceb Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 15 九月 2023 16:01:04 +0800
Subject: [PATCH] debug

---
 nsq/msg_handler.go |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/nsq/msg_handler.go b/nsq/msg_handler.go
index 5237309..b13dd4b 100644
--- a/nsq/msg_handler.go
+++ b/nsq/msg_handler.go
@@ -152,6 +152,12 @@
 		}
 	}
 
+	if resp.PlcConfig.Method == "" {
+		return nil
+	}
+
+	resp.PlcConfig.Method.ConvertToEnglish()
+
 	var record model.DevicePlc
 	err = mapstructure.Decode(resp.PlcConfig, &record)
 	if err != nil {

--
Gitblit v1.8.0