feat: 支持邮箱注册功能

This commit is contained in:
ccnetcore
2025-07-13 21:26:46 +08:00
parent 020d674ca2
commit 43dc962606
18 changed files with 483 additions and 214 deletions

View File

@@ -85,7 +85,19 @@ export function getCodeImg() {
// 获取短信验证码
export function getCodePhone(phoneForm) {
return request({
url: "/account/captcha-phone",
url: "/account/captcha-phone/register",
headers: {
isToken: false,
},
method: "post",
timeout: 20000,
data: phoneForm,
});
}
// 获取邮箱验证码
export function getCodeEmail(phoneForm) {
return request({
url: "/account/captcha-email/register",
headers: {
isToken: false,
},

View File

@@ -59,7 +59,7 @@ export function userLogout() {
*/
export function getCodePhone(data) {
return request({
url: `/account/captcha-phone`,
url: `/account/captcha-phone/register`,
method: "post",
data,
});