24 lines
461 B
TypeScript
24 lines
461 B
TypeScript
import { request } from '@/utils/request'
|
|
|
|
export const payOrderApi = (data: { id: number; pay_way: string }) => {
|
|
return request<WechatMiniprogram.RequestPaymentOption>(
|
|
{
|
|
method: 'POST',
|
|
url: 'shop/order/pay',
|
|
data,
|
|
},
|
|
false,
|
|
)
|
|
}
|
|
|
|
export const postPayNotifyApi = (data: { id: number; pay_way: string }) => {
|
|
return request(
|
|
{
|
|
method: 'POST',
|
|
url: 'shop/order/payNotify',
|
|
data,
|
|
},
|
|
false,
|
|
)
|
|
}
|