|
|
|
@ -53,6 +53,8 @@ func Routers(r *gin.RouterGroup) {
|
|
|
|
|
r.POST("/wxLogin", wxLogin)
|
|
|
|
|
//微信二维码
|
|
|
|
|
r.GET("/wxShowImg", wxShowImg)
|
|
|
|
|
//检查OpenId
|
|
|
|
|
r.GET("/checkOpenId", checkOpenId)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -661,9 +663,9 @@ func checkOpenId(context *gin.Context) {
|
|
|
|
|
//3、写cookie
|
|
|
|
|
context.SetCookie(ConfigUtil.AccessToken, encodeString, 0, "/", "", false, true)
|
|
|
|
|
//4、跳转到XXX页面,比如集成页,或者管理员的首页
|
|
|
|
|
if identityId==1{
|
|
|
|
|
if identityId == 1 {
|
|
|
|
|
context.Redirect(301, "/dsBaseWeb/#/organization/bureau")
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
context.Redirect(301, "/dsBaseWeb/pages/personPortal/")
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|