From 7c120552db6265fb0a431b1cbe2605ec5165e881 Mon Sep 17 00:00:00 2001 From: al Date: Tue, 5 Nov 2024 20:07:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B6=85=E7=B2=89=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/my/createProfile/page.jsx | 13 +++++++------ app/space/setting/spacePaymentSetting/page.jsx | 6 ++---- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/app/my/createProfile/page.jsx b/app/my/createProfile/page.jsx index ca9cddd..3f1f78b 100644 --- a/app/my/createProfile/page.jsx +++ b/app/my/createProfile/page.jsx @@ -131,11 +131,11 @@ export default function CreateProfile() { ironFanPrice: "", openSuper: true, superSingle: [ - { enable: false, price: 0, wechatFree: false }, - { enable: false, price: 0, wechatFree: false }, - { enable: false, price: 0, wechatFree: false }, - { enable: false, price: 0, wechatFree: false }, - { enable: false, price: 0, wechatFree: false }, + { enable: true, price: 0, wechatFree: true }, + { enable: false, price: 0, wechatFree: true }, + { enable: false, price: 0, wechatFree: true }, + { enable: false, price: 0, wechatFree: true }, + { enable: false, price: 0, wechatFree: true }, ], spaceIntro: "", }); @@ -143,7 +143,7 @@ export default function CreateProfile() { const [tiefenPriceAble, setTiefenPriceAble] = useState(false); const [isSubmitting, setIsSubmitting] = useState(false); // const [superSingleCheckeds, setSuperSingleCheckeds] = useState([]); - const [superSingleChecked, setSuperSingleChecked] = useState(null); + const [superSingleChecked, setSuperSingleChecked] = useState(0); const listItemWithCheckboxMemo = useMemo(() => { return superSingles.map((item) => ( @@ -318,6 +318,7 @@ export default function CreateProfile() { // 新版本 // superfan_price_list, }; + debugger; const _data = await requireAPI( "POST", "/api/zone/create", diff --git a/app/space/setting/spacePaymentSetting/page.jsx b/app/space/setting/spacePaymentSetting/page.jsx index 529086a..33fa690 100644 --- a/app/space/setting/spacePaymentSetting/page.jsx +++ b/app/space/setting/spacePaymentSetting/page.jsx @@ -365,10 +365,8 @@ export default function spacePaymentSetting() { is_superfanship_enabled: openSuper ? 1 : 0, // 旧版本 superfanship_price: superfanObj.price, - superfanship_valid_period: openSuper ? superfanObj.period : 0, - is_superfanship_give_wechat: openSuper - ? superfanObj.is_superfanship_give_wechat - : 0, + superfanship_valid_period: superfanObj.period, + is_superfanship_give_wechat: superfanObj.is_superfanship_give_wechat, // 新版本 // superfan_price_list, };