|
|
|
@ -705,7 +705,13 @@ func bindWxUser(context *gin.Context) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
//是否能登录
|
|
|
|
|
success, identityId, personId, _, _, wxOpenId := ServiceLoginPerson.Login(username, string(decryptPwd), ip)
|
|
|
|
|
success, identityId, personId, _, remainCount, wxOpenId := ServiceLoginPerson.Login(username, string(decryptPwd), ip)
|
|
|
|
|
if remainCount == 0 {
|
|
|
|
|
context.JSON(http.StatusOK, Model.Res{
|
|
|
|
|
Code: http.StatusNotImplemented,
|
|
|
|
|
Msg: "密码输入错误次数过多,请两个小时后继续登录!",
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//2、如果匹配了,那么这个登录名是不是已经绑定过openId了
|
|
|
|
|
if success {
|
|
|
|
|
if len(wxOpenId) > 0 {
|
|
|
|
|