fix(payment): 修复推广返佣与收款接口 schema 顶层常量 TDZ 报错
affiliate.js 的 rebateTypeOptions 与 gateway.js 的 currencyOptions 定义在 文件底部,而 schema 对象在模块顶层即引用,ES 模块顶层代码立即执行导致 const 声明前访问触发 ReferenceError(压缩后表现为 Cannot access 'He')。 将常量上移至 schema 对象之前。
This commit is contained in:
1 parent
a48007a44d
commit
2c139e5c20
2 files changed
+38
-38
No files matched your search
@@ -1,3 +1,11 @@
|
||||
/** 返佣订单类型(与运行时 membership/content/credits 对齐)。 */
|
||||
const rebateTypeOptions = [
|
||||
{ label: '全部订单', value: 'all' },
|
||||
{ label: '购买会员', value: 'membership' },
|
||||
{ label: '付费内容', value: 'content' },
|
||||
{ label: '购买积分', value: 'credits' },
|
||||
]
|
||||
|
||||
/**
|
||||
* 推广返佣 — 参考主题结构:开关、识别模式、自己推广自己、按用户类型分档的
|
||||
* 返佣规则(tab)、文案、推广海报与推广让利标签。
|
||||
@@ -173,11 +181,3 @@ export const affiliateSchema = {
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
/** 返佣订单类型(与运行时 membership/content/credits 对齐)。 */
|
||||
const rebateTypeOptions = [
|
||||
{ label: '全部订单', value: 'all' },
|
||||
{ label: '购买会员', value: 'membership' },
|
||||
{ label: '付费内容', value: 'content' },
|
||||
{ label: '购买积分', value: 'credits' },
|
||||
]
|
||||
Reference in new issue
Block a user