26 lines
626 B
JavaScript
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
|
|
};
|
|
}
|
|
}
|
|
|
|
|