优化支付日志和配置删除提示

This commit is contained in:
yml
2026-06-18 22:16:09 +08:00
parent fa14e0e36d
commit 9b06673efb
15 changed files with 381 additions and 92 deletions
@@ -4,6 +4,8 @@ import (
"crypto/rand"
"encoding/hex"
"hfb_sys/backend/internal/logging"
"github.com/gin-gonic/gin"
)
@@ -20,6 +22,7 @@ func RequestID() gin.HandlerFunc {
}
c.Set(ContextRequestID, requestID)
c.Writer.Header().Set(RequestIDHeader, requestID)
c.Request = c.Request.WithContext(logging.WithRequestID(c.Request.Context(), requestID))
c.Next()
}
}