From a900339e6d1d20afff4e05b71d5fc9c688f1511e Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Wed, 5 Aug 2020 16:12:27 +0800 Subject: [PATCH] 'commit' --- dsSso/Controller/ControllerOauth2/ControllerOauth2.go | 5 +++++ dsSso/static/jumpWx.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dsSso/Controller/ControllerOauth2/ControllerOauth2.go b/dsSso/Controller/ControllerOauth2/ControllerOauth2.go index 30a87a0a..b149fc1b 100644 --- a/dsSso/Controller/ControllerOauth2/ControllerOauth2.go +++ b/dsSso/Controller/ControllerOauth2/ControllerOauth2.go @@ -724,6 +724,11 @@ func bindWxUser(context *gin.Context) { }) return } + //输出正确了~ + context.JSON(http.StatusOK, Model.Res{ + Code: http.StatusOK, + Msg: "绑定成功!", + }) } } else { context.JSON(http.StatusOK, Model.Res{ diff --git a/dsSso/static/jumpWx.html b/dsSso/static/jumpWx.html index c7331c2b..9727ef5d 100644 --- a/dsSso/static/jumpWx.html +++ b/dsSso/static/jumpWx.html @@ -35,7 +35,7 @@ async: false, success: function (result) { if(result.success){ - window.location.href="/dsBaseWeb/#/organization/bureau"; + window.location.href="/"; }else{ var openId=result.openId; window.location.href="/sso/static/bindUser.html?openId="+openId;