logisticsService.js
497 Bytes
import BaseService from '../../../libs/services/baseService.js';
const UFO_LOGISTICS = 'ufo.order.expressDetailInfo';
export default class MessageService extends BaseService {
async fetchLogisticsInfo(params, complete) {
return await this.GET(
{
...params,
method: UFO_LOGISTICS
},
{
complete
}
).then((data) => {
return data;
}).catch((error) => {
// 这里请抛出异常,不要return
throw error;
})
}
}