feat: WeChat Pay integration, translation quota management, login UX fixes
- WeChat Pay APIv3 integration (JSAPI + Native) with cert-based auth - TranslationQuota model + admin management UI (配额 tab) - Alibaba MT provider now checks quota before translation - Fix: admin tabs scrollable on mobile, remove header-card - Fix: profile/login navigation - logout stays on profile, login returns to profile - Fix: login form now visible by default (no extra click to show) - Fix: home page translate link uses navigateTo (was switchTab to non-tabBar page) - Add .coverage and apiclient_key.pem to gitignore
This commit is contained in:
@@ -178,6 +178,11 @@ export const adminApi = {
|
||||
},
|
||||
getConfig: () => request('/admin/config'),
|
||||
updateConfig: (key, value) => request(`/admin/config/${key}`, 'PUT', { value }),
|
||||
getTranslationQuotas: () => request('/admin/translation-quotas'),
|
||||
updateTranslationQuota: (version, data) =>
|
||||
request(`/admin/translation-quotas/${encodeURIComponent(version)}`, 'PUT', data),
|
||||
resetTranslationQuota: (version) =>
|
||||
request(`/admin/translation-quotas/${encodeURIComponent(version)}/reset`, 'POST'),
|
||||
}
|
||||
|
||||
export const aiChatApi = {
|
||||
@@ -230,7 +235,8 @@ export const notificationApi = {
|
||||
export const paymentApi = {
|
||||
plans: () => request('/payment/plans'),
|
||||
subscription: () => request('/payment/subscription'),
|
||||
createOrder: (plan) => request('/payment/create-order', 'POST', { plan }),
|
||||
createOrder: (plan, payType = 'jsapi') =>
|
||||
request('/payment/create-order', 'POST', { plan, pay_type: payType }),
|
||||
}
|
||||
|
||||
export const feedbackApi = {
|
||||
|
||||
Reference in New Issue
Block a user