const baseUrl = "http://test.marketapi.1688sup.com"; //测试 // const baseUrl="http://pre.marketapi.1688sup.com" //镜像 // const baseUrl="https://marketapi.1688sup.com" //正式 //api全局封装 const request = async (type, url, params) => { return my.request({ url: baseUrl + url, method: type, data: params, }).then((res) => { return res.data; }).catch({}) } //获取订单详情 export const getInfo = (parmas) => { return request('post', '/alipay/cash/orderInfo', parmas); } //领取红包 export const receiveRed = (parmas) => { return request('post', '/alipay/cash/receive', parmas); }