perf: 优化微信支付对接文档

This commit is contained in:
xiaojunnuo
2026-01-04 11:58:32 +08:00
parent 269a6cad80
commit 64e0d9a4d5
6 changed files with 11 additions and 8 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

+3 -2
View File
@@ -11,7 +11,8 @@
* 进入“账户中心”->“API安全”->“商户API证书”->“管理证书” * 进入“账户中心”->“API安全”->“商户API证书”->“管理证书”
* 根据指引生成证书 * 根据指引生成证书
* 得到私钥和公 * 得到apiclient证书和私钥
![wx-1.png](images/wx-1.png)
3. 填写APIv3密钥 3. 填写APIv3密钥
@@ -24,4 +25,4 @@
4. 在Certd后台配置微信支付 4. 在Certd后台配置微信支付
* 进入“系统”->"设置"->“支付设置” * 进入“系统”->"设置"->“支付设置”
* 启用微信支付,选择“微信支付配置”,点击添加 * 启用微信支付,选择“微信支付配置”,点击添加
* 填写微信支付商户号、证书私钥、证书公钥、APIv3密钥即可。 * 填写微信支付商户号、证书apiclient_cert.pem)、私钥(apiclient_key.pem、APIv3密钥即可。
@@ -62,7 +62,7 @@ export default {
forgotAdminPassword: "忘记管理员密码?", forgotAdminPassword: "忘记管理员密码?",
registerLink: "注册", registerLink: "注册",
smsTab: "短信验证码登录", smsTab: "手机号注册登录",
passwordTab: "密码登录", passwordTab: "密码登录",
title: "修改密码", title: "修改密码",
@@ -30,7 +30,7 @@
</a-form-item> </a-form-item>
</template> </template>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="email" tab="邮箱注册" :disabled="!settingsStore.sysPublic.emailRegisterEnabled"> <a-tab-pane v-if="settingsStore.sysPublic.emailRegisterEnabled !== false" key="email" tab="邮箱注册">
<template v-if="registerType === 'email'"> <template v-if="registerType === 'email'">
<a-form-item required has-feedback name="username" label="用户名" :rules="rules.username"> <a-form-item required has-feedback name="username" label="用户名" :rules="rules.username">
<a-input v-model:value="formState.username" placeholder="用户名" size="large" autocomplete="off"> <a-input v-model:value="formState.username" placeholder="用户名" size="large" autocomplete="off">
+1 -1
View File
@@ -1,2 +1,2 @@
LEGO_VERSION=4.30.1 LEGO_VERSION=4.30.1
certd_plugin_loadmode=metadata certd_plugin_loadmode=dev
@@ -30,12 +30,13 @@ export class WxpayAccess extends BaseAccess {
mchid: string; mchid: string;
@AccessInput({ @AccessInput({
title: "公钥", title: "证书公钥",
component: { component: {
name: "a-textarea", name: "a-textarea",
rows: 3, rows: 3,
placeholder: "MIIBIjANBg...", placeholder: "-----BEGIN CERTIFICATE-----",
}, },
helper: "微信商户平台—>账户设置—>API安全—>验证商户身份—>商户API证书—>管理证书—>apiclient_cert.pem",
required: true, required: true,
encrypt: true, encrypt: true,
}) })
@@ -44,10 +45,11 @@ export class WxpayAccess extends BaseAccess {
@AccessInput({ @AccessInput({
title: "私钥", title: "私钥",
component: { component: {
placeholder: "MIIEvQIBADANB...", placeholder: "-----BEGIN PRIVATE KEY-----",
name: "a-textarea", name: "a-textarea",
rows: 3, rows: 3,
}, },
helper: "证书私钥 apiclient_key.pem",
required: true, required: true,
encrypt: true, encrypt: true,
}) })