From 4722561a6e58f313b5943eaddecbd9040f17684f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 9 Apr 2021 09:44:44 +0800 Subject: [PATCH] aa --- controllers/auth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/auth2.go b/controllers/auth2.go index 88d45da48..1d6089e7f 100644 --- a/controllers/auth2.go +++ b/controllers/auth2.go @@ -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)