...
|
...
|
@@ -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();
|
...
|
...
|
@@ -118,7 +119,7 @@ public class OpenIdController { |
|
|
if (!(boolean) request.getAttribute("signAspect"))
|
|
|
return new ResponseEntity<>(ResultModel.error(ResultStatus.SIGN_ERROR), HttpStatus.OK);
|
|
|
|
|
|
XklMemberOpenidEntity xklMemberOpenid = xklMemberOpenidRespository.findByOpenidAndType(openId, openIdType);
|
|
|
XklMemberOpenidEntity xklMemberOpenid = xklMemberOpenidRespository.findOneByOpenidAndType(openId, openIdType);
|
|
|
|
|
|
if (xklMemberOpenid == null) {
|
|
|
return new ResponseEntity<>(ResultModel.error(ResultStatus.OPENID_ERROR), HttpStatus.OK);
|
...
|
...
|
|