This commit is contained in:
2025-08-02 05:38:35 +08:00
parent d4a765f984
commit 46915672cc

View File

@@ -52,7 +52,7 @@ func (m *DomainAuthMiddleware) Handle(domain string) gin.HandlerFunc {
host = host[:idx]
}
m.logger.Info("域名认证中间件检查", zap.String("host", host), zap.String("domain", domain))
if host == domain {
if host == domain || host == "api.tianyuanapi.com" || host == "apitest.tianyuanapi.com" {
// 设置域名匹配标记
c.Set("domainMatched", domain)
c.Next()