feat: 修复登陆和注册
This commit is contained in:
@@ -239,12 +239,10 @@ export default function AuthFormContent() {
|
||||
credential: phone,
|
||||
verification_code: verificationCode,
|
||||
login_type: 'phone',
|
||||
type: 'phone',
|
||||
purpose: config.api.purpose, // 使用配置中的purpose
|
||||
};
|
||||
|
||||
// 调用API(根据模式选择不同的endpoint)
|
||||
const response = await fetch(`${API_BASE_URL}${config.api.endpoint}`, {
|
||||
// 调用API(根据模式选择不同的endpoint
|
||||
const response = await fetch(`${API_BASE_URL}/api/auth/login-with-code`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user