mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 10:56:27 +00:00
update
This commit is contained in:
@@ -259,10 +259,24 @@ const checkLastBalanceCTS = async (card_number, uniqueCode, req) => {
|
||||
'Authorization': 'Bearer ' + token_api
|
||||
},
|
||||
};
|
||||
|
||||
winston.logger.info(
|
||||
`${uniqueCode} [ RESPONSE config ]: ${JSON.stringify(config)}`
|
||||
);
|
||||
|
||||
const dataPost = { 'card_number': card_number }
|
||||
const url = current_url + `/api/pos/card-lastbalance`;
|
||||
|
||||
winston.logger.info(
|
||||
`${uniqueCode} [ RESPONSE url ]: ${JSON.stringify(url)}`
|
||||
);
|
||||
|
||||
const resp = await axios.post(url, dataPost, config);
|
||||
|
||||
winston.logger.info(
|
||||
`${uniqueCode} [ RESPONSE resp.data ]: ${JSON.stringify(resp.data)}`
|
||||
);
|
||||
|
||||
if(resp.data.data == undefined || resp.data.data.detail.last_balance == undefined) {
|
||||
result = {
|
||||
code: '446',
|
||||
|
||||
Reference in New Issue
Block a user