This commit is contained in:
苏尹岚
2021-04-09 09:44:44 +08:00
parent a71f903e00
commit 4722561a6e

View File

@@ -92,7 +92,7 @@ func (c *Auth2Controller) Login() {
} else if params.AuthType == auth2.AuthTypeEmail {
params.AuthIDType = auth2.UserIDEmail
}
if params.AuthType == weixin.AuthTypeMini {
if params.AuthType == weixin.AuthTypeMini || params.AuthType == weixin.AuthTypeWxApp {
params.AuthSecret = GetComposedCode(&c.Controller, params.AuthSecret)
}
ctx := auth2.NewContext(c.Ctx.ResponseWriter, c.Ctx.Request)