hookehuyr

fix 轮询获取订单状态API

1 /* 1 /*
2 * @Date: 2023-08-24 09:42:27 2 * @Date: 2023-08-24 09:42:27
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-01-19 18:20:39 4 + * @LastEditTime: 2024-01-24 14:13:35
5 * @FilePath: /xysBooking/src/api/index.js 5 * @FilePath: /xysBooking/src/api/index.js
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
...@@ -22,6 +22,7 @@ const Api = { ...@@ -22,6 +22,7 @@ const Api = {
22 BILL_LIST: '/srv/?a=api&t=bill_list', 22 BILL_LIST: '/srv/?a=api&t=bill_list',
23 CANCEL_PREPARE: '/srv/?a=api&t=cancel_prepare', 23 CANCEL_PREPARE: '/srv/?a=api&t=cancel_prepare',
24 BILL_PREPARE: '/srv/?a=api&t=bill_person', 24 BILL_PREPARE: '/srv/?a=api&t=bill_person',
25 + BILL_PAY_STATUS: '/srv/?a=api&t=bill_pay_status',
25 }; 26 };
26 27
27 /** 28 /**
...@@ -128,3 +129,10 @@ export const cancelPrepareAPI = (params) => fn(fetch.post(Api.CANCEL_PREPARE, pa ...@@ -128,3 +129,10 @@ export const cancelPrepareAPI = (params) => fn(fetch.post(Api.CANCEL_PREPARE, pa
128 * @returns {String} 129 * @returns {String}
129 */ 130 */
130 export const billPersonAPI = (params) => fn(fetch.get(Api.BILL_PREPARE, params)); 131 export const billPersonAPI = (params) => fn(fetch.get(Api.BILL_PREPARE, params));
132 +
133 +/**
134 + * @description: 刷新预约单支付状态
135 + * @param {String}
136 + * @returns {String}
137 + */
138 +export const billPayStatusAPI = (params) => fn(fetch.get(Api.BILL_PAY_STATUS, params));
......