站点RPC方法
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
323 B

package siterpc
var DES_KEY = "confdata"
func rpc_server_conn(url ...string) (*SiteServiceClient, error) {
var wx_rpc_url string = "127.0.0.1:7971"
if len(url) > 0 && url[0] != "" {
wx_rpc_url = url[0]
}
conn, _, err := DialSiteService("tcp", wx_rpc_url)
if err != nil {
return nil, err
}
return conn, nil
}