master
huanghai 5 years ago
parent c73ba48e16
commit 0577db4c23

@ -529,7 +529,7 @@ func wxLogin(context *gin.Context) {
if resp.StatusCode == 200 {
//将返回结果转为json
openid := gjson.Get(string(body), "openid")
context.JSON(http.StatusOK, map[string]interface{}{"success": true, "openid": openid})
context.Redirect(301, "/sso/static/bindUser.html?openid="+openid.Str)
} else {
context.JSON(http.StatusOK, map[string]interface{}{"success": false, "openid": ""})
}

Loading…
Cancel
Save