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, };