mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
update pkg/rule_engine/nodes/action_rpc_request_to_device_node.go.
Signed-off-by: PandaX <18610165312@163.com>
This commit is contained in:
@@ -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("指令方法格式错误")
|
||||
|
||||
Reference in New Issue
Block a user