const loginCode = await this.getWxMiniProgramCode();
const params = {
code: loginCode,
encryptedPhoneData: encryptedData,
phoneIv: iv,
uid: currentUid,
lx: currentLx, // 添加lx参数
type: 'wechat_mini',
deviceId: this.deviceInfo.deviceId
};
res = await getWechatLogin(params);

你好,建议使用新方式获取 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html
部分基础库的逻辑有问题