|
|
@ -182,7 +182,7 @@ public class WeChatAouth2Service {
|
|
|
|
return Result.failed(StatusCode.WECHAT_lOGIN_FAILED);
|
|
|
|
return Result.failed(StatusCode.WECHAT_lOGIN_FAILED);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String wechatUsername = EmojiConverterUtil.encode(getWechatUsername(accessToken, openId));
|
|
|
|
String wechatUsername = getWechatUsername(accessToken, openId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 如果当前手机号在数据库中存在,更新用户信息wxid,返回token
|
|
|
|
// 如果当前手机号在数据库中存在,更新用户信息wxid,返回token
|
|
|
@ -299,7 +299,7 @@ public class WeChatAouth2Service {
|
|
|
|
nickName = new String(nickName.getBytes(StandardCharsets.ISO_8859_1),StandardCharsets.UTF_8);
|
|
|
|
nickName = new String(nickName.getBytes(StandardCharsets.ISO_8859_1),StandardCharsets.UTF_8);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nickName;
|
|
|
|
return EmojiConverterUtil.encode(nickName);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Aouth2WeChatTokenResponse refreshAccessToken(String refresh_token) {
|
|
|
|
public Aouth2WeChatTokenResponse refreshAccessToken(String refresh_token) {
|
|
|
|