Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e01883d5
authored
Aug 18, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能优化】商城:支持阿里接口内容加密,同时修复支付宝渠道配置前端校验不生效的问题 #IAKCU4
parent
a9e52b4e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
19 deletions
+16
-19
src/views/pay/app/components/channel/AlipayChannelForm.vue
+11
-8
src/views/pay/app/components/channel/MockChannelForm.vue
+1
-1
src/views/pay/app/components/channel/WalletChannelForm.vue
+1
-1
src/views/pay/app/components/channel/WeixinChannelForm.vue
+3
-9
No files found.
src/views/pay/app/components/channel/AlipayChannelForm.vue
View file @
e01883d5
...
...
@@ -159,14 +159,17 @@
<el-form-item
label-width=
"180px"
label=
"接口内容加密方式"
prop=
"config.encryptType"
>
<el-radio-group
v-model=
"formData.config.encryptType"
>
<el-radio
key=
"AES"
label=
"AES"
>
AES
</el-radio>
<el-radio
key=
"NONE"
label=
""
>
无加密
</el-radio>
<el-radio
key=
"AES"
label=
"AES"
>
AES
</el-radio>
</el-radio-group>
</el-form-item>
<div
v-if=
"formData.config.encryptType === 'AES'"
>
<el-form-item
label-width=
"180px"
label=
"AES 密钥"
prop=
"config.encryptKey"
>
<el-input
v-model=
"formData.config.encryptKey"
placeholder=
"请输入接口内容加密密钥"
clearable
/>
<el-form-item
label-width=
"180px"
label=
"接口内容加密密钥"
prop=
"config.encryptKey"
>
<el-input
v-model=
"formData.config.encryptKey"
placeholder=
"请输入接口内容加密密钥"
clearable
/>
</el-form-item>
</div>
...
...
@@ -211,7 +214,7 @@ const formData = ref<any>({
alipayPublicCertContent
:
''
,
rootCertContent
:
''
,
encryptType
:
''
,
encryptKey
:
''
,
encryptKey
:
''
}
})
const
formRules
=
{
...
...
@@ -230,7 +233,7 @@ const formRules = {
{
required
:
true
,
message
:
'请上传支付宝公钥证书'
,
trigger
:
'blur'
}
],
'config.rootCertContent'
:
[{
required
:
true
,
message
:
'请上传指定根证书'
,
trigger
:
'blur'
}],
'config.encryptKey'
:
[{
required
:
true
,
message
:
'请输入接口内容加密密钥'
,
trigger
:
'blur'
}],
'config.encryptKey'
:
[{
required
:
true
,
message
:
'请输入接口内容加密密钥'
,
trigger
:
'blur'
}]
}
const
fileAccept
=
'.crt'
const
formRef
=
ref
()
// 表单 Ref
...
...
@@ -299,8 +302,8 @@ const resetForm = (appId, code) => {
appCertContent
:
''
,
alipayPublicCertContent
:
''
,
rootCertContent
:
''
,
encryptType
:
'
AES
'
,
encryptKey
:
''
,
encryptType
:
''
,
encryptKey
:
''
}
}
formRef
.
value
?.
resetFields
()
...
...
src/views/pay/app/components/channel/MockChannelForm.vue
View file @
e01883d5
<
template
>
<div>
<Dialog
v-model=
"dialogVisible"
:title=
"dialogTitle"
@
closed=
"close"
width=
"800px"
>
<Dialog
v-model=
"dialogVisible"
:title=
"dialogTitle"
width=
"800px"
>
<el-form
ref=
"formRef"
:model=
"formData"
...
...
src/views/pay/app/components/channel/WalletChannelForm.vue
View file @
e01883d5
<
template
>
<div>
<Dialog
v-model=
"dialogVisible"
:title=
"dialogTitle"
@
closed=
"close"
width=
"800px"
>
<Dialog
v-model=
"dialogVisible"
:title=
"dialogTitle"
width=
"800px"
>
<el-form
ref=
"formRef"
:model=
"formData"
...
...
src/views/pay/app/components/channel/WeixinChannelForm.vue
View file @
e01883d5
<
template
>
<div>
<Dialog
v-model=
"dialogVisible"
:title=
"dialogTitle"
@
close=
"close"
width=
"800px"
>
<Dialog
v-model=
"dialogVisible"
:title=
"dialogTitle"
width=
"800px"
>
<el-form
ref=
"formRef"
:model=
"formData"
...
...
@@ -48,11 +48,7 @@
</el-form-item>
<div
v-if=
"formData.config.apiVersion === 'v2'"
>
<el-form-item
label-width=
"180px"
label=
"商户密钥"
prop=
"config.mchKey"
>
<el-input
v-model=
"formData.config.mchKey"
placeholder=
"请输入商户密钥"
clearable
/>
<el-input
v-model=
"formData.config.mchKey"
placeholder=
"请输入商户密钥"
clearable
/>
</el-form-item>
<el-form-item
label-width=
"180px"
...
...
@@ -182,9 +178,7 @@ const formRules = {
'config.privateKeyContent'
:
[
{
required
:
true
,
message
:
'请上传 apiclient_key.pem 证书'
,
trigger
:
'blur'
}
],
'config.certSerialNo'
:
[
{
required
:
true
,
message
:
'请输入证书序列号'
,
trigger
:
'blur'
}
],
'config.certSerialNo'
:
[{
required
:
true
,
message
:
'请输入证书序列号'
,
trigger
:
'blur'
}],
'config.apiV3Key'
:
[{
required
:
true
,
message
:
'请上传 api V3 密钥值'
,
trigger
:
'blur'
}]
}
const
formRef
=
ref
()
// 表单 Ref
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment