diff --git a/jeepay-ui-manager/src/views/isv/custom/WxpayPayConfig.vue b/jeepay-ui-manager/src/views/isv/custom/WxpayPayConfig.vue
index ec99759..d22f313 100644
--- a/jeepay-ui-manager/src/views/isv/custom/WxpayPayConfig.vue
+++ b/jeepay-ui-manager/src/views/isv/custom/WxpayPayConfig.vue
@@ -61,11 +61,6 @@
-
-
-
-
-
@@ -75,7 +70,12 @@
-
+
+
+
+
+
+
@@ -85,7 +85,7 @@
-
+
-
+
+
+
+
+ {{ loading ? '正在上传' : '点击上传' }}
+
+
+
+
+
+
{
+ if (this.ifParams.apiVersion === 'V3' && this.isAdd && !value) {
+ callback(new Error('请上传API证书(apiclient_cert.p12)'))
+ }
+ callback()
+ } }],
+ apiClientCert: [{ trigger: 'blur',
+ validator: (rule, value, callback) => {
+ if (this.ifParams.apiVersion === 'V3' && this.isAdd && !value) {
+ callback(new Error('请上传证书文件(apiclient_cert.pem)'))
+ }
+ callback()
+ } }],
apiClientKey: [{ trigger: 'blur',
validator: (rule, value, callback) => {
- if (this.ifParams.apiVersion === 'V3' && !this.ifParams.apiClientKey) {
- callback(new Error('请上传私钥文件'))
+ if (this.ifParams.apiVersion === 'V3' && !value) {
+ callback(new Error('请上传私钥文件(apiclient_key.pem)'))
}
callback()
} }]
diff --git a/jeepay-ui-manager/src/views/mchApp/custom/WxpayPayConfig.vue b/jeepay-ui-manager/src/views/mchApp/custom/WxpayPayConfig.vue
index dd7566d..1e9febe 100644
--- a/jeepay-ui-manager/src/views/mchApp/custom/WxpayPayConfig.vue
+++ b/jeepay-ui-manager/src/views/mchApp/custom/WxpayPayConfig.vue
@@ -56,11 +56,6 @@
-
-
-
-
-
@@ -70,7 +65,12 @@
-
+
+
+
+
+
+
@@ -80,7 +80,7 @@
-
+
-
+
+
+
+
+ {{ loading ? '正在上传' : '点击上传' }}
+
+
+
+
+
+
{
+ if (this.ifParams.apiVersion === 'V3' && this.isAdd && !value) {
+ callback(new Error('请上传API证书(apiclient_cert.p12)'))
+ }
+ callback()
+ } }],
+ apiClientCert: [{ trigger: 'blur',
+ validator: (rule, value, callback) => {
+ if (this.ifParams.apiVersion === 'V3' && this.isAdd && !value) {
+ callback(new Error('请上传证书文件(apiclient_cert.pem)'))
+ }
+ callback()
+ } }],
apiClientKey: [{ trigger: 'blur',
validator: (rule, value, callback) => {
if (this.ifParams.apiVersion === 'V3' && this.mchType === 1 && !this.ifParams.apiClientKey) {
- callback(new Error('请上传私钥文件'))
+ callback(new Error('请上传私钥文件(apiclient_key.pem)'))
}
callback()
} }],
diff --git a/jeepay-ui-merchant/src/views/mchApp/custom/WxpayPayConfig.vue b/jeepay-ui-merchant/src/views/mchApp/custom/WxpayPayConfig.vue
index dd7566d..1e9febe 100644
--- a/jeepay-ui-merchant/src/views/mchApp/custom/WxpayPayConfig.vue
+++ b/jeepay-ui-merchant/src/views/mchApp/custom/WxpayPayConfig.vue
@@ -56,11 +56,6 @@
-
-
-
-
-
@@ -70,7 +65,12 @@
-
+
+
+
+
+
+
@@ -80,7 +80,7 @@
-
+
-
+
+
+
+
+ {{ loading ? '正在上传' : '点击上传' }}
+
+
+
+
+
+
{
+ if (this.ifParams.apiVersion === 'V3' && this.isAdd && !value) {
+ callback(new Error('请上传API证书(apiclient_cert.p12)'))
+ }
+ callback()
+ } }],
+ apiClientCert: [{ trigger: 'blur',
+ validator: (rule, value, callback) => {
+ if (this.ifParams.apiVersion === 'V3' && this.isAdd && !value) {
+ callback(new Error('请上传证书文件(apiclient_cert.pem)'))
+ }
+ callback()
+ } }],
apiClientKey: [{ trigger: 'blur',
validator: (rule, value, callback) => {
if (this.ifParams.apiVersion === 'V3' && this.mchType === 1 && !this.ifParams.apiClientKey) {
- callback(new Error('请上传私钥文件'))
+ callback(new Error('请上传私钥文件(apiclient_key.pem)'))
}
callback()
} }],