hbsmUniapp/src/api/pay.ts

24 lines
461 B
TypeScript
Raw Normal View History

2025-08-19 23:31:48 +08:00
import { request } from '@/utils/request'
export const payOrderApi = (data: { id: number; pay_way: string }) => {
return request<WechatMiniprogram.RequestPaymentOption>(
{
method: 'POST',
2025-08-27 20:45:34 +08:00
url: 'shop/order/pay',
2025-08-19 23:31:48 +08:00
data,
},
false,
)
}
export const postPayNotifyApi = (data: { id: number; pay_way: string }) => {
return request(
{
method: 'POST',
2025-08-27 20:45:34 +08:00
url: 'shop/order/payNotify',
2025-08-19 23:31:48 +08:00
data,
},
false,
)
}