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