From 0374de3fec3c40c804a35d9e5366f1b7315ffd57 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 28 Sep 2026 21:50:10 +0800 Subject: [PATCH] fix(revenue): drop dead affiliate_settlement_days field from JS schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The immediate-credit model removed settlement, but only the PHP schema side was cleaned. The JS admin schema still rendered a savable-but-unread "结算观察期" field. Remove it from both the defaults and field list, and rebuild the admin SPA bundle so it no longer surfaces. --- assets/admin/src/schema/sections/payment/affiliate.js | 2 -- tools/admin-contract-report.json | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/assets/admin/src/schema/sections/payment/affiliate.js b/assets/admin/src/schema/sections/payment/affiliate.js index 50792461..c1526210 100644 --- a/assets/admin/src/schema/sections/payment/affiliate.js +++ b/assets/admin/src/schema/sections/payment/affiliate.js @@ -26,7 +26,6 @@ export const affiliateSchema = { pay_rebate_ratio_vip_1: 10, pay_rebate_user_s_2: ['all'], pay_rebate_ratio_vip_2: 20, - affiliate_settlement_days: 7, affiliate_disabled_code_stops_commission: false, referral_attribution_model: 'first_touch', pay_rebate_text_desc: '加入分享计划,获得高额奖励', @@ -152,7 +151,6 @@ export const affiliateSchema = { }, ], }, - { key: 'affiliate_settlement_days', label: '结算观察期(天)', type: 'number', default: 7, min: 0, max: 90, dependsOn: { key: 'pay_rebate_s', value: true }, help: '订单完成后经过观察期,佣金才会结算到可提现余额' }, { key: 'affiliate_disabled_code_stops_commission', label: '推广码禁用后停止返佣', type: 'switch', default: false, dependsOn: { key: 'pay_rebate_s', value: true }, help: '开启后,推广者的推广码被禁用(或缺失)时,其名下已绑定用户的新订单不再产生佣金;关闭则绑定关系继续生效' }, ], }, diff --git a/tools/admin-contract-report.json b/tools/admin-contract-report.json index df218467..0c39a15a 100644 --- a/tools/admin-contract-report.json +++ b/tools/admin-contract-report.json @@ -1,5 +1,5 @@ { - "generated_at": "2026-09-28T13:07:05+00:00", + "generated_at": "2026-09-28T13:49:53+00:00", "errors": [], "warnings": [ "customPage tools-update section 'tools/update' not in PHP schema (ok if pure operational page)", @@ -232,7 +232,7 @@ "entry": true, "missing_chunks": [], "chunks": [ - "SchemaPage.BlftdWHF.js", + "SchemaPage.Bai0uPL7.js", "vendor-vue.BYzo-2I-.js", "FaIcon.B3OOcphx.js", "AksMediaField.DJPSTsh8.js", @@ -248,8 +248,8 @@ "FloatingButtonsSettings.CLilEe8k.js", "PageHeader.jmNZVzHG.js", "FooterTabbarSettings.BFZnXJRS.js", - "PostPageSettings.GaJR43Dg.js", - "CommentSettings.DaHpPrbb.js", + "PostPageSettings.B9iQMeXd.js", + "CommentSettings.B3EoTCwT.js", "PermissionsCapabilities.Dwo7ED9D.js", "CmsCredits.BeYe9Q4u.js", "ThemeInfoPage.BEUFF9-H.js",