chore: topic去除空格

Signed-off-by: PandaX <18610165312@163.com>
This commit is contained in:
PandaX
2025-08-29 06:42:39 +00:00
committed by Gitee
parent 29623e114a
commit d48c00bc5d

View File

@@ -38,6 +38,8 @@ func NewIotHubTopic() TopicMeg {
}
func (iht TopicMeg) GetMessageType(topic string) string {
//删除topic的前后空格
topic = strings.TrimSpace(topic)
if meg, ok := iht[topic]; ok {
return meg
}