@ -9,7 +9,7 @@
"routers": [
{
"router": "POST /upload/work/ABStatus",
"idTemplate": "{{.Values.UcId}}"
"idTemplate": "{{.values.ucId}}"
},
"router": "POST /upload/work/ABSHeart",
@ -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())
@ -35,9 +35,8 @@ func (the *ApiServerHelper) Initial() {
}
func (the *ApiServerHelper) Run() {
the.server.ListenAndServe()
log.Printf("apiServer监听端口 %d", the.port)
func (the *ApiServerHelper) routeRegister() {