diff --git a/frontend/src/components/payment/__tests__/PaymentProviderDialog.spec.ts b/frontend/src/components/payment/__tests__/PaymentProviderDialog.spec.ts
index 9221455275..a84ff4cbda 100644
--- a/frontend/src/components/payment/__tests__/PaymentProviderDialog.spec.ts
+++ b/frontend/src/components/payment/__tests__/PaymentProviderDialog.spec.ts
@@ -187,9 +187,10 @@ describe('PaymentProviderDialog payment guide', () => {
await nextTick()
const inputs = wrapper.findAll('input[type="text"]')
- const ldcTypeInput = inputs.find(input => (input.element as HTMLInputElement).placeholder === 'ldc')
- const upstreamTypeInput = inputs.find(input => (input.element as HTMLInputElement).placeholder === 'epay')
- const displayNameInput = inputs.find(input => (input.element as HTMLInputElement).placeholder === 'LDC')
+ const customTypeInputs = inputs.filter(input => (input.element as HTMLInputElement).placeholder === 'credit_card')
+ const ldcTypeInput = customTypeInputs[0]
+ const upstreamTypeInput = customTypeInputs[1]
+ const displayNameInput = inputs.find(input => (input.element as HTMLInputElement).placeholder === '信用卡')
if (!ldcTypeInput || !upstreamTypeInput || !displayNameInput) {
throw new Error('custom method inputs not found')
}
@@ -229,9 +230,10 @@ describe('PaymentProviderDialog payment guide', () => {
await nextTick()
const inputs = wrapper.findAll('input[type="text"]')
- const typeInput = inputs.find(input => (input.element as HTMLInputElement).placeholder === 'ldc')
- const upstreamTypeInput = inputs.find(input => (input.element as HTMLInputElement).placeholder === 'epay')
- const displayNameInput = inputs.find(input => (input.element as HTMLInputElement).placeholder === 'LDC')
+ const customTypeInputs = inputs.filter(input => (input.element as HTMLInputElement).placeholder === 'credit_card')
+ const typeInput = customTypeInputs[0]
+ const upstreamTypeInput = customTypeInputs[1]
+ const displayNameInput = inputs.find(input => (input.element as HTMLInputElement).placeholder === '信用卡')
if (!typeInput || !upstreamTypeInput || !displayNameInput) {
throw new Error('custom method inputs not found')
}
diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts
index f4b38b2d85..bd49ba0ccf 100644
--- a/frontend/src/i18n/locales/zh.ts
+++ b/frontend/src/i18n/locales/zh.ts
@@ -6422,8 +6422,8 @@ export default {
field_cid: '支付渠道 ID',
field_cidAlipay: '支付宝渠道 ID',
field_cidWxpay: '微信渠道 ID',
- easypayCustomMethods: '易支付自定义方式',
- easypayCustomMethodsHint: '添加当前易支付接口额外支持的方式。支付方式会记录到 Sub2API 订单中,上游 type 会作为易支付 type 参数提交。',
+ easypayCustomMethods: '易支付自定义支付方式',
+ easypayCustomMethodsHint: '添加当前易支付服务商额外支持的支付方式。支付方式会记录到 Sub2API 订单中,上游 type 会作为易支付 type 参数提交。',
addCustomMethod: '添加方式',
customMethodType: '支付方式',
customMethodUpstreamType: '上游 type',