fix: issues

This commit is contained in:
Rogee
2024-12-13 20:12:57 +08:00
parent 8a48f202f2
commit 13ebc91220
11 changed files with 109 additions and 37 deletions

View File

@@ -11,9 +11,6 @@ import (
)
func (f *Middlewares) WeChatSilentAuth(c fiber.Ctx) error {
log.WithField("module", "middleware.WeChatSilentAuth").Debug("Begin")
defer log.WithField("module", "middleware.WeChatSilentAuth").Debug("END")
// if cookie not exists key "openid", then redirect to the wechat auth page
token := c.GetReqHeaders()["Authorization"]
if len(token) != 0 {