release: freeze V1.2 demo acceptance 2026-10-25
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Waiting to run
CI/CD Pipeline / Backend Build & Test (push) Waiting to run
CI/CD Pipeline / Admin Web Build (push) Waiting to run
CI/CD Pipeline / Mini Program Compile Check (push) Waiting to run
CI/CD Pipeline / Migration Validation (push) Blocked by required conditions
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Waiting to run
CI/CD Pipeline / E2E (live stack) (push) Blocked by required conditions

This commit is contained in:
WorkBuddy
2026-10-25 14:29:29 +08:00
parent f6744d3f91
commit 377429995c
137 changed files with 4136 additions and 175 deletions
+15
View File
@@ -28,6 +28,18 @@ function bindPhone(payload) {
return api.post('/auth/phone/bind', payload, undefined, payload.phoneCode || payload.encryptedData);
}
function sendPhoneCode(phone) {
return api.post('/auth/phone/send-code', { phone });
}
function verifyPhone(phone, code) {
return api.post('/auth/phone/verify', { phone, code });
}
function register(payload) {
return api.post('/auth/register', payload, undefined, payload.verificationTransaction);
}
/**
* 刷新 Token(API_INVENTORY 行 10)
* 后端 /auth/refresh 只强制要求 refreshToken(userId 由令牌 subject 自证身份);
@@ -52,6 +64,9 @@ function logout() {
module.exports = {
wechatLogin,
bindPhone,
sendPhoneCode,
verifyPhone,
register,
refresh,
logout,
};