...
|
...
|
@@ -73,6 +73,7 @@ public class OpenIdController { |
|
|
} else {//已经存在
|
|
|
xklMemberOpenid.setOpenid(openId);
|
|
|
}
|
|
|
xklMemberOpenidRespository.deleteByOpenid(openId);
|
|
|
xklMemberOpenidRespository.save(xklMemberOpenid);
|
|
|
}
|
|
|
return new ResponseEntity<>(ResultModel.ok(ResultStatus.OPENID_BIND_SUCCESS), HttpStatus.OK);
|
...
|
...
|
@@ -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);
|
...
|
...
|
|