小程序code换取openId
This commit is contained in:
parent
a795eb3c2c
commit
707798a665
|
|
@ -36,7 +36,7 @@ public class UserAuthorizationServiceImpl implements UserAuthorizationService {
|
||||||
@Override
|
@Override
|
||||||
public String getOpenId(String code, String source) {
|
public String getOpenId(String code, String source) {
|
||||||
String openId;
|
String openId;
|
||||||
if (UserAuthSourceEnum.WECHAT.getValue().equals(code)) {
|
if (UserAuthSourceEnum.WECHAT.getValue().equals(source)) {
|
||||||
openId = wechatAuthUtil.getSessionKeyOrOpenId(code);
|
openId = wechatAuthUtil.getSessionKeyOrOpenId(code);
|
||||||
}else {
|
}else {
|
||||||
openId = alipayUtil.getOpenId(code);
|
openId = alipayUtil.getOpenId(code);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue