修复错别字

Signed-off-by: 勤快的小晴同学 <941403820@qq.com>
This commit is contained in:
勤快的小晴同学
2024-03-11 01:33:01 +00:00
committed by Gitee
parent 3d265207b6
commit bb0ec5a25a
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ func (rpc RpcRequest) Pub(deviceId, reqPayload string) error {
topic := fmt.Sprintf(RpcRespTopic, rpc.RequestId)
value, ok := Session.Load(deviceId)
if !ok {
return errors.New("获取到设备的MQTT连接")
return errors.New("获取到设备的MQTT连接")
}
return Publish(topic, value.(string), reqPayload)
}

View File

@@ -20,7 +20,7 @@ func Send(deviceId, msg string) error {
}
} else {
global.Log.Infof("设备%s TCP连接不存在, 发送指令失败", deviceId)
return errors.New("获取到设备的MQTT连接")
return errors.New("获取到设备的MQTT连接")
}
return nil
}