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