feat(lakala): 证书上传放宽格式(.pem/.cer/.crt/.key) + 文案标注PKCS#8/X.509与已上传态i18n

This commit is contained in:
DaxPay Dev
2026-07-06 18:40:02 +08:00
parent a37b74406b
commit b642417e21
3 changed files with 16 additions and 12 deletions

View File

@@ -13,10 +13,12 @@
"orgCodePlaceholder": "Please enter organization code",
"mchSerialNo": "Merchant Certificate Serial Number",
"mchSerialNoPlaceholder": "Please enter merchant certificate serial number",
"privateKey": "Private Key Certificate (.pem)",
"privateKeyTooltip": "The private_key.pem file provided by Lakala",
"publicKey": "Lakala Public Key (.cer)",
"publicKeyTooltip": "The publicKey.cer file provided by Lakala",
"privateKey": "Application Private Key",
"privateKeyTooltip": "The application private key file (PKCS#8 PEM) provided by Lakala. Common filenames include private_key.pem, 应用私钥.cer, apiclient_key.pem, etc. Content must contain the -----BEGIN PRIVATE KEY----- marker",
"publicKey": "Lakala Public Key",
"publicKeyTooltip": "The public key certificate file (X.509 PEM) provided by Lakala. Common filenames include publicKey.cer, lakala_pub.pem, etc. Content must contain the -----BEGIN CERTIFICATE----- marker",
"privateKeyUploaded": "Uploaded (PKCS#8 PEM)",
"publicKeyUploaded": "Uploaded (X.509 PEM)",
"sm4Key": "Lakala SM4 Key",
"sm4KeyPlaceholder": "Please enter SM4 key (for onboarding sensitive fields, optional)",
"uploadPublicKey": "Upload Public Key Cert",

View File

@@ -13,10 +13,12 @@
"orgCodePlaceholder": "请输入机构代码",
"mchSerialNo": "商户证书序列号",
"mchSerialNoPlaceholder": "请输入商户证书序列号",
"privateKey": "私钥证书(.pem格式)",
"privateKeyTooltip": "拉卡拉提供的 private_key.pem 文件",
"publicKey": "拉卡拉公钥(.cer格式)",
"publicKeyTooltip": "拉卡拉提供的 publicKey.cer 文件",
"privateKey": "应用私钥",
"privateKeyTooltip": "拉卡拉提供的应用私钥文件PKCS#8 PEM 格式),常见文件名如 private_key.pem、应用私钥.cer、apiclient_key.pem 等,内容需含 -----BEGIN PRIVATE KEY----- 标记",
"publicKey": "拉卡拉公钥",
"publicKeyTooltip": "拉卡拉提供的公钥证书文件X.509 PEM 格式),常见文件名如 publicKey.cer、lakala_pub.pem 等,内容需含 -----BEGIN CERTIFICATE----- 标记",
"privateKeyUploaded": "已上传私钥PKCS#8 PEM",
"publicKeyUploaded": "已上传公钥X.509 PEM",
"sm4Key": "拉卡拉SM4密钥",
"sm4KeyPlaceholder": "请输入SM4密钥(进件敏感字段加密用, 选填)",
"uploadPublicKey": "公钥证书上传",

View File

@@ -166,7 +166,7 @@
:disabled="!canEdit"
:multiple="false"
:show-upload-list="false"
accept=".cer"
accept=".pem,.cer,.crt"
:before-upload="() => false"
@change="(info: any) => handleUpload(info, 'publicKey')"
>
@@ -175,7 +175,7 @@
{{ $t('payment.channel.lakalaIsv.uploadPublicKey') }}
</a-button>
</a-upload>
<a-input v-else value="publicKey.cer" disabled>
<a-input v-else :value="$t('payment.channel.lakalaIsv.publicKeyUploaded')" disabled>
<template #suffix>
<span v-if="canEdit" class="cursor-pointer text-gray-400" @click="form.publicKey = ''">
<IconifyIcon icon="ant-design:close-circle-outlined" class="text-lg" />
@@ -194,7 +194,7 @@
:disabled="!canEdit"
:multiple="false"
:show-upload-list="false"
accept=".pem"
accept=".pem,.cer,.crt,.key"
:before-upload="() => false"
@change="(info: any) => handleUpload(info, 'privateKey')"
>
@@ -203,7 +203,7 @@
{{ $t('payment.channel.lakalaIsv.uploadKey') }}
</a-button>
</a-upload>
<a-input v-else value="private_key.pem" disabled>
<a-input v-else :value="$t('payment.channel.lakalaIsv.privateKeyUploaded')" disabled>
<template #suffix>
<span v-if="canEdit" class="cursor-pointer text-gray-400" @click="form.privateKey = ''">
<IconifyIcon icon="ant-design:close-circle-outlined" class="text-lg" />