feat 服务发现模块
This commit is contained in:
@@ -41,7 +41,7 @@ func NewClient(httpAddr, websocketAddr string) *Client {
|
||||
func (c *Client) Start() {
|
||||
go func() {
|
||||
data := fmt.Sprintf(`{"phone": "%v", "code": "1234"}`, utils.SnowflakeInstance().Generate().String())
|
||||
resp, err := http.Post(c.httpAddr+"/gw/login", "application/json", bytes.NewBufferString(data))
|
||||
resp, err := http.Post(c.httpAddr+"/gw/open/login", "application/json", bytes.NewBufferString(data))
|
||||
if err != nil {
|
||||
log.Errorf("POST request failed: %v\n", err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user