fix(payment): send features as string not array when creating/updating plan

This commit is contained in:
erio
2026-04-07 01:35:18 +08:00
parent f3ea2f9f55
commit bb187fc701
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
0.1.108.45
0.1.108.46
@@ -200,7 +200,7 @@ function openPlanEdit(plan: SubscriptionPlan | null) {
async function handleSavePlan() {
planSaving.value = true
try {
const features = planFeaturesText.value.split('\n').map(f => f.trim()).filter(Boolean)
const features = planFeaturesText.value.split('\n').map(f => f.trim()).filter(Boolean).join('\n')
const data = { ...planForm, features }
if (editingPlan.value) { await adminPaymentAPI.updatePlan(editingPlan.value.id, data) }
else { await adminPaymentAPI.createPlan(data) }