feat: 登录逻辑的调整

This commit is contained in:
2025-10-12 13:55:35 +08:00
parent 14945914ea
commit 2abce21c49
7 changed files with 58 additions and 15 deletions

View File

@@ -11,7 +11,10 @@ export const getWeChatAuthCode = (e) => {
// #endif
// 判断用户拒绝授权
if (e.detail.errMsg === "getPhoneNumber:fail user deny") {
if (
e !== undefined &&
e.detail.errMsg === "getPhoneNumber:fail user deny"
) {
reject();
return;
}

View File

@@ -48,13 +48,9 @@ const bindPhone = async (params) => {
}
};
const checkPhone = async (phone) => {
try {
const response = await checkUserPhone(phone);
return response;
} catch (error) {
throw err;
}
const checkPhone = async () => {
const response = await checkUserPhone();
return response;
};
export { loginAuth, bindPhone, checkPhone };