Correção nos tipos
parent
c03689b9fc
commit
6c1c483496
|
@ -96,8 +96,7 @@ func (c *Cli) ScreenClickCenter(f string) error {
|
||||||
err := c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/screen/clickcenter?f=%s", f), nil)
|
err := c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/screen/clickcenter?f=%s", f), nil)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
func (c *Cli) ScreenFind(f string) (ret map[string]interface{}, err error) {
|
func (c *Cli) ScreenFind(f string) (ret []map[string]interface{}, err error) {
|
||||||
ret = make(map[string]interface{})
|
|
||||||
err = c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/screen/find?f=%s", f), &ret)
|
err = c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/screen/find?f=%s", f), &ret)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue