Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-packages
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
许振钊
ydl-packages
Commits
accff1ed
Commit
accff1ed
authored
Oct 08, 2023
by
zhengxiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 兼容 orderId
parent
e9885c90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Payment.ts
packages/toolkit/src/Payment/Payment.ts
+2
-2
No files found.
packages/toolkit/src/Payment/Payment.ts
View file @
accff1ed
...
@@ -83,13 +83,13 @@ export class Payment {
...
@@ -83,13 +83,13 @@ export class Payment {
})
})
}
}
getPayMethodList
(
totalAmount
:
number
,
doctorId
?:
string
)
{
getPayMethodList
(
totalAmount
:
number
,
doctorId
?:
string
,
orderId
?:
string
)
{
// 计算支付方式列表
// 计算支付方式列表
const
List
=
this
.
supportCombination
?
this
.
getPayMethodListForCombination
(
totalAmount
)
:
this
.
getPayMethodListForNotCombination
(
totalAmount
)
const
List
=
this
.
supportCombination
?
this
.
getPayMethodListForCombination
(
totalAmount
)
:
this
.
getPayMethodListForNotCombination
(
totalAmount
)
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
try
{
try
{
const
res
=
await
this
.
getDisabledPayMethodList
(
doctorId
)
const
res
=
await
this
.
getDisabledPayMethodList
(
doctorId
,
orderId
)
console
.
log
(
"🚀 ~ file: Payment.ts:93 ~ Payment ~ returnnewPromise ~ res:"
,
res
)
console
.
log
(
"🚀 ~ file: Payment.ts:93 ~ Payment ~ returnnewPromise ~ res:"
,
res
)
// 从list中过滤出被禁止的支付方式
// 从list中过滤出被禁止的支付方式
const
filterList
=
List
.
filter
(({
value
})
=>
!
res
.
includes
(
value
))
const
filterList
=
List
.
filter
(({
value
})
=>
!
res
.
includes
(
value
))
...
...
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