| @@ -35,10 +35,7 @@ func GetQRCode4Bind(ctx *context.Context) { | |||||
| }) | }) | ||||
| return | return | ||||
| } | } | ||||
| redirectUrl := ctx.Query("redirect_to") | |||||
| if redirectUrl != "" { | |||||
| ctx.SetCookie("redirect_to", setting.AppSubURL+redirectUrl, 0, setting.AppSubURL) | |||||
| } | |||||
| ctx.JSON(200, map[string]interface{}{ | ctx.JSON(200, map[string]interface{}{ | ||||
| "code": "00", | "code": "00", | ||||
| "msg": "success", | "msg": "success", | ||||
| @@ -90,7 +87,10 @@ func GetBindPage(ctx *context.Context) { | |||||
| if r != nil { | if r != nil { | ||||
| ctx.Data["qrcode"] = r | ctx.Data["qrcode"] = r | ||||
| } | } | ||||
| redirectUrl := ctx.Query("redirect_to") | |||||
| if redirectUrl != "" { | |||||
| ctx.SetCookie("redirect_to", setting.AppSubURL+redirectUrl, 0, setting.AppSubURL) | |||||
| } | |||||
| ctx.HTML(200, tplBindPage) | ctx.HTML(200, tplBindPage) | ||||
| } | } | ||||