|
|
|
@ -663,13 +663,9 @@ func checkOpenId(context *gin.Context) {
|
|
|
|
|
//3、写cookie
|
|
|
|
|
context.SetCookie(ConfigUtil.AccessToken, encodeString, 0, "/", "", false, true)
|
|
|
|
|
//4、跳转到XXX页面,比如集成页,或者管理员的首页
|
|
|
|
|
if identityId == 1 {
|
|
|
|
|
context.Redirect(301, "/dsBaseWeb/#/organization/bureau")
|
|
|
|
|
} else {
|
|
|
|
|
context.Redirect(301, "/dsBaseWeb/pages/personPortal/")
|
|
|
|
|
}
|
|
|
|
|
context.JSON(http.StatusOK, map[string]interface{}{"success": true, "openId": openId})
|
|
|
|
|
} else {
|
|
|
|
|
//2、如果此OpenId没有实现过挂接,应该跳转到绑定用户页面
|
|
|
|
|
context.Redirect(301, "/sso/static/bindUser.html?openId="+openId)
|
|
|
|
|
context.JSON(http.StatusOK, map[string]interface{}{"success": false, "openId": openId})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|