import { request, handle } from '@kasite/uni-app-base'; import { REQUEST_CONFIG } from '@/config'; export const queryCardBalance_V3 = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryCardBalance_V3/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; export const addOrderLocal = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/order/orderApi/AddOrderLocal/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; export const getConfigKey = async (orderId: any, serviceId: any) => { const url = `${REQUEST_CONFIG.BASE_URL}wsgw/smallpro/${orderId}/${serviceId}/getConfigKey.do`; let resp = handle.promistHandleNew(await request.doPost(url, {})); return handle.catchPromiseNew(resp, () => resp); }; export const getUnitePay = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/pay/payApi/GetUnitePay/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; export const payCallBack = async (queryData: any) => { let resp = handle.promistHandleNew(await request.doPost(`${REQUEST_CONFIG.BASE_URL}wsgw/pay/payApi/PayCallBack/callApiJSON.do`, queryData)); return handle.catchPromiseNew(resp, () => resp); }; export default { queryCardBalance_V3, addOrderLocal, getConfigKey, getUnitePay, payCallBack, };