Files
wordpress-theme-aksrt/assets/admin/src/constants/sections/payment.js
T
kate522 b4a4b295bc refactor(admin): clean up audit/permission/paid content config
- P1: remove the duplicate "审核联动" (ai_moderate_background/submit)
  block from the attachment permissions page; those settings live in
  the "评论审核" / API content audit surfaces.
- P2: rename the "内容审核" submenu to "评论审核" (permissions domain).
- P4: remove the "下载/付费内容中心" page and its schema/route chain;
  hardcode runtime policy so download always supports credit purchase
  and paid content is limited to posts. Drop the now-dead
  cms_features.download_credit flag and parse_slug_list helper.
2026-08-13 01:14:21 +08:00

100 lines
2.9 KiB
JavaScript

import { renderFaIcon, schemaPage, customPage } from './helpers'
export const paymentSection = {
key: 'payment',
label: '支付&付费',
icon: renderFaIcon('fas fa-wallet'),
route: '/payment',
children: [
schemaPage({
key: 'payment-recharge',
name: 'PaymentRecharge',
label: '余额充值',
route: '/payment/recharge',
status: 'available',
title: '余额充值',
desc: '余额充值策略、记录和手动确认配置。',
canonicalDomain: 'payment',
section: 'recharge',
}),
schemaPage({
key: 'payment-vip',
name: 'PaymentVip',
label: 'VIP会员',
route: '/payment/vip',
status: 'available',
title: 'VIP会员',
desc: '会员套餐、会员特权和免扣策略。',
canonicalDomain: 'payment',
section: 'vip',
}),
customPage({
key: 'payment-gateway',
name: 'PaymentGateway',
label: '收款接口',
route: '/payment/gateway',
component: 'PaymentGateway',
status: 'available',
title: '收款接口',
desc: '支付网关适配器、测试网关和手动确认配置。',
canonicalDomain: 'payment',
section: 'gateway',
}),
schemaPage({
key: 'payment-order',
name: 'PaymentOrder',
label: '订单设置',
route: '/payment/order',
status: 'available',
title: '订单设置',
desc: '订单前缀、有效期、展示字段和状态文案。',
canonicalDomain: 'payment',
section: 'order',
}),
schemaPage({
key: 'payment-revenue',
name: 'PaymentRevenue',
label: '创作中心',
route: '/payment/revenue',
status: 'available',
title: '创作中心',
desc: '独立配置现金与积分分成比例、结算周期和结算备注文案。',
canonicalDomain: 'payment',
section: 'revenue',
}),
schemaPage({
key: 'payment-affiliate',
name: 'PaymentAffiliate',
label: '推广返佣',
route: '/payment/affiliate',
status: 'available',
title: '推广返佣',
desc: '返佣规则、邀请链路和结算策略(返佣工单在支付中心)。',
canonicalDomain: 'payment',
section: 'affiliate',
}),
schemaPage({
key: 'payment-card-pass',
name: 'PaymentCardPass',
label: '卡密设置',
route: '/payment/card-pass',
status: 'available',
title: '卡密设置',
desc: '充值卡类型、卡号规则与兑换文案(卡密工单在支付中心)。',
canonicalDomain: 'payment',
section: 'card-pass',
}),
schemaPage({
key: 'payment-withdrawal',
name: 'PaymentWithdrawal',
label: '提现策略',
route: '/payment/withdrawal',
status: 'available',
title: '提现策略',
desc: '最低提现、手续费与说明文案(提现工单在支付中心)。',
canonicalDomain: 'payment',
section: 'withdrawal',
}),
],
}