Files
FE_CPONE/test/vuex/cpone-process-resultentry-v21/api/re_history.js
2026-04-27 10:13:31 +07:00

26 lines
626 B
JavaScript

const URL = "/one-api/mockup/process/cpone-process-resultentry-v21/";
export async function history(token, order_id) {
try {
var resp = await axios.post(URL + 'history/search_v2', {
token: token,
order_id: order_id
});
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
let data = resp.data;
return data;
} catch(e) {
return {
status: "ERR",
message: e.message
};
}
}