From 5a9e2e97e78a05209a57a75a75678d67c32c58d5 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 21 十月 2023 11:25:20 +0800 Subject: [PATCH] debug over --- nsq/msg_handler.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/nsq/msg_handler.go b/nsq/msg_handler.go index d0cea52..335c143 100644 --- a/nsq/msg_handler.go +++ b/nsq/msg_handler.go @@ -297,7 +297,7 @@ } detail, err := json.Marshal(record.Details) record.Detail = string(detail) - + record.DeviceID = msg.ID oldPlcRecord, err := model.NewDevicePlcSearch().SetDeviceId(msg.ID).First() if err == gorm.ErrRecordNotFound { err = model.NewDevicePlcSearch().Create(&record) -- Gitblit v1.8.0