Browse Source

更新获取站点信息方法

master v0.6.4
guzeng 3 years ago
parent
commit
e8c45f9045
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      client.siteinfo.go

+ 10
- 2
client.siteinfo.go View File

@ -28,9 +28,17 @@ type SiteInfoRes struct {
* 2021/06/24
* 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 {
return nil, err
}


Loading…
Cancel
Save