...
|
...
|
@@ -63,6 +63,7 @@ public class OpenIdController { |
|
|
if (user == null) {//用户,密码错误
|
|
|
return new ResponseEntity<>(ResultModel.error(ResultStatus.USERNAME_OR_PASSWORD_ERROR), HttpStatus.OK);
|
|
|
} else {
|
|
|
xklMemberOpenidRespository.deleteByOpenid(openId);
|
|
|
XklMemberOpenidEntity xklMemberOpenid = xklMemberOpenidRespository.findByAccountIdAndType(user.getId(), openIdType);
|
|
|
if (xklMemberOpenid == null) {
|
|
|
xklMemberOpenid = new XklMemberOpenidEntity();
|
...
|
...
|
@@ -73,7 +74,6 @@ public class OpenIdController { |
|
|
} else {//已经存在
|
|
|
xklMemberOpenid.setOpenid(openId);
|
|
|
}
|
|
|
xklMemberOpenidRespository.deleteByOpenid(openId);
|
|
|
xklMemberOpenidRespository.save(xklMemberOpenid);
|
|
|
}
|
|
|
return new ResponseEntity<>(ResultModel.ok(ResultStatus.OPENID_BIND_SUCCESS), HttpStatus.OK);
|
...
|
...
|
|