mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-13 07:45:41 +08:00
feat 增加请求有效时长参数配置
This commit is contained in:
@@ -29,6 +29,8 @@ export interface PayPlatformConfig extends BaseEntity {
|
||||
websiteUrl?: string
|
||||
// 开启签名验证
|
||||
reqSign?: boolean
|
||||
// 请求过期时长(秒)
|
||||
reqTimeout?: number
|
||||
// 签名方式
|
||||
signType?: string
|
||||
// 签名秘钥
|
||||
|
||||
@@ -54,16 +54,16 @@
|
||||
<a-input placeholder="请输入签名秘钥" v-model:value="form.signSecret" :disabled="!edit" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :offset="4" :span="20">
|
||||
<a-form-item class="w-400px" name="limitAmount">
|
||||
<a-col :span="20">
|
||||
<a-form-item class="w-800px" name="limitAmount">
|
||||
<template #label>
|
||||
<basic-title helpMessage="一次订单支付时最高可以支付的金额,支付通道同时配置以低的为准"> 订单限额(元) </basic-title>
|
||||
</template>
|
||||
<a-input placeholder="请输入订单限额" v-model:value="form.limitAmount" :disabled="!edit" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :offset="4" :span="20">
|
||||
<a-form-item label="订单默认超时时间(分钟)" class="w-400px" name="orderTimeout">
|
||||
<a-col :span="20">
|
||||
<a-form-item label="订单默认超时时间(分钟)" class="w-800px" name="orderTimeout">
|
||||
<a-input-number
|
||||
:disabled="!edit"
|
||||
placeholder="请输入订单默认超时时间(分钟)"
|
||||
@@ -73,6 +73,22 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="20">
|
||||
<a-form-item class="w-800px" name="reqTimeout">
|
||||
<template #label>
|
||||
<basic-title helpMessage="调用支付相关接口时传输的请求时间早于当前服务时间, 且差值超过配置的时长, 将会拦截请求">
|
||||
请求有效时长(秒)
|
||||
</basic-title>
|
||||
</template>
|
||||
<a-input-number
|
||||
:disabled="!edit"
|
||||
placeholder="请输入请求有效时长(秒)"
|
||||
:precision="0"
|
||||
:min="5"
|
||||
v-model:value="form.reqTimeout"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row>
|
||||
<a-col :push="8">
|
||||
@@ -109,6 +125,7 @@
|
||||
signType: [{ required: form.reqSign, message: '请选择签名类型' }],
|
||||
signSecret: [{ required: form.reqSign, message: '请输入签名密钥' }],
|
||||
orderTimeout: [{ required: true, message: '请输入订单默认超时时间(分钟)' }],
|
||||
reqTimeout: [{ required: true, message: '请输入请求有效时长(秒)' }],
|
||||
} as Record<string, Rule[]>
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user