Browse Source

#1494

update
pull/1565/head
chenyifan01 3 years ago
parent
commit
f823e04a96
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      routers/authentication/wechat.go

+ 6
- 0
routers/authentication/wechat.go View File

@@ -82,6 +82,12 @@ func UnbindWechat(ctx *context.Context) {


// GetBindPage // GetBindPage
func GetBindPage(ctx *context.Context) { func GetBindPage(ctx *context.Context) {
userId := ctx.User.ID
r, _ := createQRCode4Bind(userId)
if r != nil {
ctx.Data["qrcode"] = r
}

ctx.HTML(200, tplBindPage) ctx.HTML(200, tplBindPage)
} }




Loading…
Cancel
Save