master
huanghai 5 years ago
parent 6bb3dd7969
commit 2c40265ea8

@ -697,6 +697,13 @@ func bindWxUser(context *gin.Context) {
return return
} }
decryptPwd, err := RsaUtil.RsaDecrypt(b) 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) success, identityId, personId, _, _, wxOpenId := ServiceLoginPerson.Login(username, string(decryptPwd), ip)
//2、如果匹配了那么这个登录名是不是已经绑定过openId了 //2、如果匹配了那么这个登录名是不是已经绑定过openId了

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

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

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

Loading…
Cancel
Save