注册本机消息判断

This commit is contained in:
boyce
2019-03-20 14:51:23 +08:00
parent 671159cc87
commit 9bf79f7175
2 changed files with 8 additions and 1 deletions

View File

@@ -118,8 +118,11 @@ func (slf *HttpServerService) httpHandler(w http.ResponseWriter, r *http.Request
request := HttpRequest{r.Header, string(msg)}
var resp HttpRespone
cluster.InstanceClusterMgr().Call(strCallPath, &request, &resp)
err = cluster.InstanceClusterMgr().Call(strCallPath, &request, &resp)
w.Header().Set("Content-Type", "application/json;charset=utf-8")
if err != nil {
resp.Respone = []byte(fmt.Sprint(err))
}
w.Write([]byte(resp.Respone))
}