mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-30 05:28:34 +00:00
ddd
This commit is contained in:
@@ -3,7 +3,6 @@ package kafka
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"regexp"
|
||||
"time"
|
||||
@@ -94,11 +93,9 @@ func Publish(e *plugins.Elements) {
|
||||
if err != nil {
|
||||
log.Error("publish kafka error: ", zap.Error(err))
|
||||
}
|
||||
fmt.Println("------------", topic)
|
||||
|
||||
match, _ := regexp.MatchString(_ThingModelTopicRegexp, topic)
|
||||
if match {
|
||||
fmt.Println("------------11111")
|
||||
match, _ := regexp.MatchString(_ThingModelTopicRegexp, e.Topic)
|
||||
if match && e.Action == plugins.Publish {
|
||||
topic := "tmodel.msg.upstream"
|
||||
err := publish(topic, key, e)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user