master
huanghai 5 years ago
parent 6bb3dd7969
commit 2c40265ea8

@ -697,6 +697,13 @@ func bindWxUser(context *gin.Context) {
return
}
decryptPwd, err := RsaUtil.RsaDecrypt(b)
if err != nil {
context.JSON(http.StatusOK, Model.Res{
Code: http.StatusNotImplemented,
Msg: "密码不是系统允许的加密方式!",
})
return
}
//是否能登录
success, identityId, personId, _, _, wxOpenId := ServiceLoginPerson.Login(username, string(decryptPwd), ip)
//2、如果匹配了那么这个登录名是不是已经绑定过openId了

@ -230,8 +230,8 @@ var doc = `{
},
{
"type": "string",
"description": "openid",
"name": "openid",
"description": "openId",
"name": "openId",
"in": "formData",
"required": true
}

@ -214,8 +214,8 @@
},
{
"type": "string",
"description": "openid",
"name": "openid",
"description": "openId",
"name": "openId",
"in": "formData",
"required": true
}

@ -176,9 +176,9 @@ paths:
name: password
required: true
type: string
- description: openid
- description: openId
in: formData
name: openid
name: openId
required: true
type: string
produces:

Loading…
Cancel
Save