小程序code换取openId

This commit is contained in:
张松 2025-03-07 13:52:03 +08:00
parent a795eb3c2c
commit 707798a665
1 changed files with 1 additions and 1 deletions

View File

@ -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);