[fix] 修复tcp异常断开,云端认证还是true

This commit is contained in:
PandaX
2024-03-01 11:18:33 +08:00
parent 4eca198425
commit cdeb2c3aad
5 changed files with 3 additions and 29 deletions

View File

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