修复登陆问题

This commit is contained in:
张成
2025-10-05 11:23:20 +08:00
parent d334831876
commit 2548e15ac4
6 changed files with 25 additions and 44 deletions

View File

@@ -377,31 +377,7 @@ export const refresh_login_status = async (): Promise<boolean> => {
}
};
// 获取用户详细信息
export const fetchUserProfile = async (): Promise<
ApiResponse<UserInfoType>
> => {
try {
const response = await httpService.post("user/detail");
debugger;
return response;
} catch (error) {
console.error("获取用户信息失败:", error);
throw error;
}
};
// 更新用户信息
export const updateUserProfile = async (payload: Partial<UserInfoType>) => {
try {
const response = await httpService.post("/user/update", payload);
return response;
} catch (error) {
console.error("更新用户信息失败:", error);
throw error;
}
};
// 更新用户手机号
export const updateUserPhone = async (payload: ChangePhoneParams) => {