Commit accff1ed by zhengxiao

feat: 兼容 orderId

parent e9885c90
......@@ -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)
return new Promise(async (resolve, reject) => {
try {
const res = await this.getDisabledPayMethodList(doctorId)
const res = await this.getDisabledPayMethodList(doctorId, orderId)
console.log("🚀 ~ file: Payment.ts:93 ~ Payment ~ returnnewPromise ~ res:", res)
// 从list中过滤出被禁止的支付方式
const filterList = List.filter(({value}) => !res.includes(value))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment