From 547f1eaec27560ec366ca5784ff38aa729bc9810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Mon, 29 Dec 2025 14:16:23 +0800 Subject: [PATCH] 1 --- api/controller_front/config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/controller_front/config.js b/api/controller_front/config.js index 197ad8e..6972455 100644 --- a/api/controller_front/config.js +++ b/api/controller_front/config.js @@ -115,12 +115,19 @@ module.exports = { } delete planData.original_price; + if( planData.features) + { + planData.features = JSON.parse(planData.features); + } + // 转换 featured 为布尔值 planData.featured = planData.featured === 1; return planData; }); + debugger; + return ctx.success(pricingPlans); },