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
6afcfdd5
authored
Aug 15, 2024
by
tb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能优化】支持阿里接口内容加密,同时修复支付宝渠道配置前端校验不生效的问题 #IAKCU4
parent
d3f38c69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
src/views/pay/app/components/channel/AlipayChannelForm.vue
+23
-4
No files found.
src/views/pay/app/components/channel/AlipayChannelForm.vue
View file @
6afcfdd5
...
...
@@ -4,7 +4,7 @@
<el-form
ref=
"formRef"
:model=
"formData"
:
formR
ules=
"formRules"
:
r
ules=
"formRules"
label-width=
"100px"
v-loading=
"formLoading"
>
...
...
@@ -156,6 +156,20 @@
</el-upload>
</el-form-item>
</div>
<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-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>
</div>
<el-form-item
label-width=
"180px"
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"formData.remark"
:style=
"{ width: '100%' }"
/>
</el-form-item>
...
...
@@ -195,7 +209,9 @@ const formData = ref<any>({
alipayPublicKey
:
''
,
appCertContent
:
''
,
alipayPublicCertContent
:
''
,
rootCertContent
:
''
rootCertContent
:
''
,
encryptType
:
''
,
encryptKey
:
''
,
}
})
const
formRules
=
{
...
...
@@ -213,7 +229,8 @@ const formRules = {
'config.alipayPublicCertContent'
:
[
{
required
:
true
,
message
:
'请上传支付宝公钥证书'
,
trigger
:
'blur'
}
],
'config.rootCertContent'
:
[{
required
:
true
,
message
:
'请上传指定根证书'
,
trigger
:
'blur'
}]
'config.rootCertContent'
:
[{
required
:
true
,
message
:
'请上传指定根证书'
,
trigger
:
'blur'
}],
'config.encryptKey'
:
[{
required
:
true
,
message
:
'请输入接口内容加密密钥'
,
trigger
:
'blur'
}],
}
const
fileAccept
=
'.crt'
const
formRef
=
ref
()
// 表单 Ref
...
...
@@ -281,7 +298,9 @@ const resetForm = (appId, code) => {
alipayPublicKey
:
''
,
appCertContent
:
''
,
alipayPublicCertContent
:
''
,
rootCertContent
:
''
rootCertContent
:
''
,
encryptType
:
'AES'
,
encryptKey
:
''
,
}
}
formRef
.
value
?.
resetFields
()
...
...
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