小程序code换取openId
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user