|
@ -28,9 +28,17 @@ type SiteInfoRes struct { |
|
|
* 2021/06/24 |
|
|
* 2021/06/24 |
|
|
* GZ |
|
|
* GZ |
|
|
*/ |
|
|
*/ |
|
|
func GetSiteInfoByHost(master, host string, url ...string) (*SiteInfoRes, error) { |
|
|
|
|
|
|
|
|
func GetSiteInfoByHost(host string, params ...string) (*SiteInfoRes, error) { |
|
|
|
|
|
|
|
|
conn, err := rpc_server_conn(url...) |
|
|
|
|
|
|
|
|
var url string = "" |
|
|
|
|
|
var master string = "" |
|
|
|
|
|
if len(params) > 1 { |
|
|
|
|
|
master = params[1] |
|
|
|
|
|
} |
|
|
|
|
|
if len(params) > 0 { |
|
|
|
|
|
url = params[0] |
|
|
|
|
|
} |
|
|
|
|
|
conn, err := rpc_server_conn(url) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
|