Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
67911fde
Commit
67911fde
authored
Dec 16, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改结算通联支付接口参数
parent
6c58b94e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
12 deletions
+20
-12
index.tsx
...balance/accountsPayable/components/GetCodeModal/index.tsx
+4
-4
index.tsx
src/pages/balance/accountsPayable/settlementList/index.tsx
+16
-8
No files found.
src/pages/balance/accountsPayable/components/GetCodeModal/index.tsx
View file @
67911fde
...
...
@@ -14,12 +14,12 @@ interface Iprops {
/** 商户订单号 */
tradeCode
:
string
onClose
?:
()
=>
void
,
/** 时间戳随机码 */
randomCode
:
string
/
/ /
** 时间戳随机码 */
//
randomCode: string
}
const
GetCodeModal
:
React
.
FC
<
Iprops
>
=
(
props
:
Iprops
)
=>
{
const
{
title
=
'验证码'
,
onOk
,
visible
,
tradeCode
,
onClose
,
randomCode
}
=
props
;
const
{
title
=
'验证码'
,
onOk
,
visible
,
tradeCode
,
onClose
}
=
props
;
const
[
code
,
setCode
]
=
useState
<
string
>
(
""
);
const
{
text
,
isActive
,
start
}
=
useCountDown
({
maxTime
:
60
,
...
...
@@ -49,7 +49,7 @@ const GetCodeModal: React.FC<Iprops> = (props: Iprops) => {
const
handleSendCode
=
async
()
=>
{
const
{
code
,
data
}
=
await
getPayEAccountAllInPayReSendPayCode
({
tradeCode
:
`
${
tradeCode
}
-
${
randomCode
}
`
tradeCode
:
`
${
tradeCode
}
`
})
if
(
code
===
1000
)
{
start
();
...
...
src/pages/balance/accountsPayable/settlementList/index.tsx
View file @
67911fde
...
...
@@ -19,6 +19,7 @@ import {
getSettleAccountsCommonGetSettlementOrderType
,
getSettleAccountsCommonGetSettlementStatus
,
getSettleAccountsMemberSettlementCommunicationPayResult
,
getSettleAccountsMemberSettlementGetCommunicationPayTradeNo
,
getSettleAccountsMemberSettlementGetPayablePayProve
,
getSettleAccountsMemberSettlementPagePayableSettlement
,
GetSettleAccountsMemberSettlementPagePayableSettlementRequest
,
...
...
@@ -157,12 +158,13 @@ const SettlementList = () => {
}
/** 通联支付,短信验证码支付 */
/** 通联支付,短信验证码支付
, 这里是后台随机生成的结算单
*/
const
handleCompleteSmsCode
=
async
(
codeString
:
string
)
=>
{
const
{
code
,
data
,
message
:
msg
}
=
await
postPayEAccountAllInPayConfirmPay
({
tradeCode
:
`
${
itemInfo
.
settlementNo
}
-
${
randomCode
}
`
,
// tradeCode: `${itemInfo.settlementNo}-${randomCode}`,
tradeCode
:
randomCode
,
verificationCode
:
codeString
})
}
,
{
ctlType
:
'none'
}
)
if
(
code
!==
1000
)
{
message
.
error
(
msg
);
return
;
...
...
@@ -176,13 +178,19 @@ const SettlementList = () => {
const
channel
=
params
.
payChannel
;
try
{
setUniversalPayLoading
(
true
)
const
randomCodeDate
=
""
+
new
Date
().
valueOf
()
setRandomCode
(
randomCodeDate
);
const
res
=
await
getSettleAccountsMemberSettlementGetCommunicationPayTradeNo
({
id
:
itemInfo
.
id
.
toString
()
})
if
(
res
.
code
!==
1000
)
{
message
.
error
(
res
.
message
);
return
;
}
setRandomCode
(
res
.
data
);
// TODO 加一个随机数
const
{
data
,
code
,
message
:
msg
}
=
await
postSettleAccountsMemberSettlementCommunicationPay
({
id
:
itemInfo
.
id
,
payChannelType
:
params
.
payChannel
,
settlementNo
:
`
${
itemInfo
.
settlementNo
}
-
${
randomCodeDate
}
`
,
},
{
ctlType
:
'none'
})
if
(
code
!==
1000
)
{
message
.
error
(
msg
);
...
...
@@ -327,9 +335,9 @@ const SettlementList = () => {
<
GetCodeModal
visible=
{
modals
.
smsCodeModal
}
onOk=
{
handleCompleteSmsCode
}
tradeCode=
{
itemInfo
?.
settlementNo
}
tradeCode=
{
randomCode
}
onClose=
{
()
=>
handleClose
(
'smsCodeModal'
)
}
randomCode=
{
randomCode
}
//
randomCode={randomCode}
/>
</
PageHeaderWrapper
>
)
...
...
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