fix: update code field names in submit logic
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 43s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m11s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m17s
AI Code Review / AI Code Review (pull_request) Failing after 2m10s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m46s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m50s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 3m16s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m51s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 35s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 55s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 1m50s
CI/CD Pipeline / CI Gate (pull_request) Failing after 17s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1157h11m18s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 1157h15m50s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1157h15m52s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 1157h21m2s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 1157h21m4s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 1157h21m6s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 1157h21m49s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1157h21m53s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 1157h23m36s
CI/CD Pipeline / PR Build Worker Image (pull_request) Failing after 1157h25m49s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 1157h26m9s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1157h26m11s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 1157h31m32s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 1157h31m36s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1157h54m58s
CI/CD Pipeline / PR Build API Image (pull_request) Failing after 1157h59m5s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 1158h4m41s

This commit is contained in:
2026-07-30 09:51:11 +08:00
parent 5e0c2f2654
commit 2b883b5468
@@ -33,7 +33,8 @@ export const useBindContactForm = ({ open, onSuccess }: UseBindContactFormOption
/* ── 发送验证码 ── */
const handleSendCode = async () => {
try {
const value = form.getFieldValue(activeTab === "email" ? "email" : "phone")
const fieldName = activeTab === "email" ? "email" : "phone"
const value = form.getFieldValue(fieldName)
if (!value) {
message.warning(activeTab === "email" ? "请输入邮箱" : "请输入手机号")
return
@@ -68,8 +69,8 @@ export const useBindContactForm = ({ open, onSuccess }: UseBindContactFormOption
try {
const payload =
activeTab === "email"
? { email: values.email, email_code: values.code }
: { phone: values.phone, phone_code: values.code }
? { email: values.email, email_code: values.email_code }
: { phone: values.phone, phone_code: values.phone_code }
const result = await bindContact(payload)