diff --git a/configFiles/config_转发http2axy60000端口.json b/configFiles/config_转发http2axy60000端口.json index 28381f7..9056c69 100644 --- a/configFiles/config_转发http2axy60000端口.json +++ b/configFiles/config_转发http2axy60000端口.json @@ -9,7 +9,7 @@ "routers": [ { "router": "POST /upload/work/ABStatus", - "idTemplate": "{{.Values.UcId}}" + "idTemplate": "{{.values.ucId}}" }, { "router": "POST /upload/work/ABSHeart", diff --git a/consumers/consumerHTTP_PRPXY.go b/consumers/consumerHTTP_PRPXY.go index 1066cc5..0be1372 100644 --- a/consumers/consumerHTTP_PRPXY.go +++ b/consumers/consumerHTTP_PRPXY.go @@ -73,7 +73,7 @@ func (the *consumerHttpProxy) onData(w http.ResponseWriter, r *http.Request) { log.Printf("收到 %s 请求 %s", r.RequestURI, body) - bodyObj := HTTP_PRPXY.ABStatus{} + bodyObj := map[string]any{} err = json.Unmarshal(body, &bodyObj) if err != nil { log.Printf("body 解析失败,请检查 %s", err.Error()) diff --git a/dbHelper/apiServerHelper.go b/dbHelper/apiServerHelper.go index 9f156c3..a7e2686 100644 --- a/dbHelper/apiServerHelper.go +++ b/dbHelper/apiServerHelper.go @@ -35,9 +35,8 @@ func (the *ApiServerHelper) Initial() { } func (the *ApiServerHelper) Run() { - - the.server.ListenAndServe() log.Printf("apiServer监听端口 %d", the.port) + the.server.ListenAndServe() } func (the *ApiServerHelper) routeRegister() {