对接接口
This commit is contained in:
@ -46,4 +46,15 @@ export const PayList: PayMethod[] = [
|
||||
value: PayValue.WeChatPay,
|
||||
type: PayCategory.WeChatPay
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
export function getPayMethodByType(type: PayCategory): PayMethod | undefined {
|
||||
return PayList.find(item => item.type === type)
|
||||
}
|
||||
|
||||
// 获取支付方式对应的文本值
|
||||
export const PayWayText: Record<PayValue, string> = {
|
||||
[PayValue.PlatformBalance]: '平台余额',
|
||||
[PayValue.StoreBalance]: '门店余额',
|
||||
[PayValue.WeChatPay]: '微信支付',
|
||||
}
|
||||
Reference in New Issue
Block a user