nsq/msg_handler.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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)