From 6bb3dd796975be14bca0918182ca68bfb725d679 Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Wed, 5 Aug 2020 15:51:02 +0800 Subject: [PATCH] 'commit' --- dsSso/Controller/ControllerOauth2/ControllerOauth2.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dsSso/Controller/ControllerOauth2/ControllerOauth2.go b/dsSso/Controller/ControllerOauth2/ControllerOauth2.go index 8c3243c1..2164b11c 100644 --- a/dsSso/Controller/ControllerOauth2/ControllerOauth2.go +++ b/dsSso/Controller/ControllerOauth2/ControllerOauth2.go @@ -679,13 +679,13 @@ func checkOpenId(context *gin.Context) { // @Produce json // @Param username formData string true "username" // @Param password formData string true "password" -// @Param openid formData string true "openid" +// @Param openId formData string true "openId" // @Success 200 {string} string // @Router /oauth2/bindWxUser [get] func bindWxUser(context *gin.Context) { username := context.PostForm("username") encryptPwd := context.PostForm("password") - openid := context.PostForm("openid") + openId := context.PostForm("openId") //1、检查用户名与密码是不是匹配 ip := context.ClientIP() b, err := base64.StdEncoding.DecodeString(encryptPwd) @@ -709,7 +709,7 @@ func bindWxUser(context *gin.Context) { return } else { //3、进行两者之间的绑定 - _, err := ServiceLoginPerson.BindWxUser(identityId, personId, openid) + _, err := ServiceLoginPerson.BindWxUser(identityId, personId, openId) if err != nil { context.JSON(http.StatusOK, Model.Res{ Code: http.StatusNotImplemented,