bff config to nacos
CI / changes (push) Successful in 2s
CI / docker-bff (push) Successful in 3m7s
CI / docker-product (push) Has been skipped
CI / docker-admin (push) Successful in 3m26s

This commit is contained in:
2026-08-13 16:27:18 +08:00
parent 94e1c6f97d
commit 6c20427b0a
19 changed files with 458 additions and 169 deletions
-2
View File
@@ -3,7 +3,6 @@ package response
import (
"bytes"
"encoding/json"
"log"
"net/http"
"strings"
@@ -35,7 +34,6 @@ func Wrap(next http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
bw := &bodyWriter{ResponseWriter: w, status: http.StatusOK}
next(bw, r)
log.Printf("raw json: %s", bw.status)
ctrl := BaseController{}
if bw.status != http.StatusOK {
ctrl.Error(w, mapHTTPError(bw.status, bw.buf.String()))