update pkg/rule_engine/nodes/action_rpc_request_to_device_node.go.

Signed-off-by: PandaX <18610165312@163.com>
This commit is contained in:
PandaX
2024-10-10 00:07:04 +00:00
committed by Gitee
parent a628ae35c0
commit 83e566a0ca

View File

@@ -51,7 +51,7 @@ func (n *rpcRequestToDeviceNode) Handle(msg *message.Message) error {
var datas = model.RpcPayload{
Params: msg.Msg.GetValue("params"),
}
if method, ok := msg.Metadata.GetValue("method").(string); ok {
if method, ok := msg.Msg.GetValue("method").(string); ok {
datas.Method = method
} else {
return errors.New("指令方法格式错误")