更新 apis/device.go

fix bug
This commit is contained in:
zhangbw 2024-10-15 11:07:52 +00:00
parent f56c239f33
commit 8e591a49d1

View File

@ -276,7 +276,7 @@ func formatXML(data []byte) ([]byte, error) {
func (d *Device) DumpHierarchy(compressed bool, pretty bool) (string, error) {
// 965 content = self.jsonrpc.dumpWindowHierarchy(compressed, None)
result, err := d.requestJsonRpc("dumpWindowHierarchy", compressed, nil)
result, err := d.requestJsonRpc("dumpWindowHierarchy", compressed)
if err != nil {
return "", err
}