From e586dbab16519ea1538fd6dfe8c7a1ba7cb69ad1 Mon Sep 17 00:00:00 2001 From: lucas <249324454@qq.com> Date: Tue, 19 Nov 2024 21:24:27 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=80=9A=E7=94=A8=E5=8C=96=E5=8F=8D?= =?UTF-8?q?=E5=BA=8F=E5=88=97=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configFiles/config_转发http2axy60000端口.json | 2 +- consumers/consumerHTTP_PRPXY.go | 2 +- dbHelper/apiServerHelper.go | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) 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() {