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) }