规范气站与配送点提现渠道
This commit is contained in:
@@ -35,6 +35,16 @@ for (const item of contract.resources) {
|
||||
throw new Error(`缺少后端资源路由:${item.name}`);
|
||||
}
|
||||
|
||||
if (!source.includes("defaultValue: 'bank'"))
|
||||
throw new Error('提现申请必须默认选择银行卡提现');
|
||||
for (const option of [
|
||||
"{ label: '银行卡提现', value: 'bank' }",
|
||||
"{ label: '支付宝提现', value: 'alipay', disabled: true }",
|
||||
"{ label: '微信提现', value: 'wechat', disabled: true }",
|
||||
]) {
|
||||
if (!source.includes(option)) throw new Error(`提现渠道配置缺失:${option}`);
|
||||
}
|
||||
|
||||
const forbidden = [
|
||||
'/platform/platform_', '/gas/gas_', '/delivery/delivery_', '/staff/',
|
||||
'/user/', '/ec/ec_', '/finance/fin_', '/wallet/wallet',
|
||||
|
||||
Reference in New Issue
Block a user