From f823e04a96a903d3a3562ba5ba0b91f52930ff0d Mon Sep 17 00:00:00 2001 From: chenyifan01 Date: Wed, 23 Feb 2022 09:59:37 +0800 Subject: [PATCH] #1494 update --- routers/authentication/wechat.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routers/authentication/wechat.go b/routers/authentication/wechat.go index 7a62850e2..880e59623 100644 --- a/routers/authentication/wechat.go +++ b/routers/authentication/wechat.go @@ -82,6 +82,12 @@ func UnbindWechat(ctx *context.Context) { // GetBindPage func GetBindPage(ctx *context.Context) { + userId := ctx.User.ID + r, _ := createQRCode4Bind(userId) + if r != nil { + ctx.Data["qrcode"] = r + } + ctx.HTML(200, tplBindPage) }