/**
* 提现策略 — 提现门槛、每日限制、收款渠道与提现协议。
*/
export const withdrawalSchema = {
key: 'payment.withdrawal',
title: '提现策略',
icon: 'fa fas fa-money-bill',
description: '配置提现门槛、手续费比例、每日限制、收款渠道与提现协议。',
defaults: {
affiliate_min_withdrawal: '50.00',
affiliate_withdrawal_fee: 5,
affiliate_daily_withdrawal_count: 3,
affiliate_daily_withdrawal_limit: '500.00',
affiliate_withdrawal_reset_time: '00:00',
affiliate_payout_channels: ['alipay', 'wechat'],
pay_rebate_withdraw_text_details: '
可提现金额达到50元后即可发起提现
申请提现需后台人工处理,一般2-3小时,请耐心等待
如有其它疑问,请与客服联系
',
},
groups: [
{
key: 'basic',
title: '提现门槛',
icon: 'fa fas fa-sliders-h',
fields: [
{ key: 'affiliate_min_withdrawal', label: '提现最低金额限制', type: 'input', sanitize_type: 'money_decimal', default: '50.00', help: '当用户可提现总金额(推广佣金、余额、创作分成)高于多少时候,才能发起提现' },
{ key: 'affiliate_withdrawal_fee', label: '提现手续费(%)', type: 'number', default: 5, min: 0, max: 100 },
],
},
{
key: 'limits',
title: '每日限制',
icon: 'fa fas fa-clock',
fields: [
{ key: 'affiliate_daily_withdrawal_count', label: '每日可提现次数', type: 'number', default: 3, min: 0, max: 99999 },
{ key: 'affiliate_daily_withdrawal_limit', label: '每日提现上限', type: 'input', sanitize_type: 'money_decimal', default: '500.00' },
{ key: 'affiliate_withdrawal_reset_time', label: '重置时间', type: 'input', default: '00:00', help: '按站点 WordPress 时区重置,格式 HH:MM。' },
],
},
{
key: 'channels',
title: '收款渠道',
icon: 'fa fas fa-qrcode',
fields: [
{ key: 'affiliate_payout_channels', label: '可用收款渠道', type: 'checkbox', default: ['alipay', 'wechat'], sanitize_type: 'array', options: [{ label: '支付宝收款码', value: 'alipay' }, { label: '微信收款码', value: 'wechat' }] },
],
},
{
key: 'agreement',
title: '提现协议',
icon: 'fa fas fa-file-contract',
fields: [
{ key: 'pay_rebate_withdraw_text_details', label: '提现协议', type: 'textarea', sanitize_type: 'html', default: '可提现金额达到50元后即可发起提现
申请提现需后台人工处理,一般2-3小时,请耐心等待
如有其它疑问,请与客服联系
', rows: 4, help: '用户申请提现时展示的内容,建议为提现须知等,支持HTML代码' },
],
},
],
}