✨ feat: 商户密钥受对接类型影响
This commit is contained in:
parent
43bc911854
commit
8822296656
|
@ -975,8 +975,8 @@ export const setResellMerchant = (id, data) => {
|
|||
}
|
||||
|
||||
/* 获取开发信息密钥 */
|
||||
export const generateRsaKey = () => {
|
||||
return req("get", baseurl + "/reseller/merchant/generateRsaKey")
|
||||
export const generateRsaKey = (data) => {
|
||||
return req("get", baseurl + "/reseller/merchant/generateRsaKey", data)
|
||||
}
|
||||
|
||||
/* 设置分销商通知地址 */
|
||||
|
|
|
@ -4,7 +4,7 @@ import Form from "@/components/form/main"
|
|||
import Ipt from "@/components/input/main"
|
||||
import { omit } from "lodash-es"
|
||||
import { useEffect, useRef, useState } from "react"
|
||||
import { Button, Card, Checkbox, Input, Notify, Radio, RadioGroup } from "zent"
|
||||
import { Button, Card, Checkbox, Input, Notify, Radio, RadioGroup, Pop } from "zent"
|
||||
import "./index.less"
|
||||
export default function Merchant() {
|
||||
const [state, setState] = useState({
|
||||
|
@ -50,7 +50,7 @@ export default function Merchant() {
|
|||
|
||||
/* 获取密钥 */
|
||||
function getKey() {
|
||||
generateRsaKey().then(({ data }) => {
|
||||
generateRsaKey({ api_mode: state.api_mode }).then(({ data }) => {
|
||||
setState({ ...state, ...data })
|
||||
})
|
||||
}
|
||||
|
@ -186,9 +186,11 @@ export default function Merchant() {
|
|||
/>
|
||||
</FormItem>
|
||||
<FormItem labelname="" required="">
|
||||
<Button type="primary" onClick={getKey}>
|
||||
重新获取密钥
|
||||
</Button>
|
||||
<Pop trigger="hover" content="密钥受 “对接类型” 影响">
|
||||
<Button type="primary" onClick={getKey}>
|
||||
重新获取密钥
|
||||
</Button>
|
||||
</Pop>
|
||||
</FormItem>
|
||||
<FormItem labelname="商户公钥" prop="merchant_public_key">
|
||||
<Input
|
||||
|
|
Loading…
Reference in New Issue