优化邮箱验证码发送接口

This commit is contained in:
wangqiao
2025-09-14 20:39:59 +08:00
parent 9d2863d6d3
commit 87ce756f6b

View File

@ -27,8 +27,14 @@ export const loginByMobile = (params: { mobile: string; code: string; socialCode
/** /**
* 发送邮箱验证码 * 发送邮箱验证码
*/ */
export const sendEmailCode = (params: { email: string }) => { export const sendEmailCode = (data: { email: string }) => {
return useDollarFetchRequest.post<IResponse<any>>('/prod-api/app-api/member/auth/send-email-code', params) return useDollarFetchRequest.post<IResponse<any>>('/prod-api/app-api/member/auth/send-email-code', data,{
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Accept': 'application/json, text/plain, */*',
'Access-Control-Allow-Origin-Type': '*',
}
})
} }
/** /**