mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 19:56:27 +00:00
update
This commit is contained in:
@@ -109,6 +109,12 @@ const checkLastBalance = async (req, res) => {
|
||||
return res.status(200).json(cardBlacklist);
|
||||
}
|
||||
|
||||
let last_balance = 0;
|
||||
let getLastBalanceFromCardHistory = await model.getLastBalanceFromCardHistory(card_number);
|
||||
if (getLastBalanceFromCardHistory) {
|
||||
last_balance = getLastBalanceFromCardHistory.m_balance_after;
|
||||
}
|
||||
|
||||
result = {
|
||||
code: '00',
|
||||
message: "Successfully.",
|
||||
@@ -116,7 +122,7 @@ const checkLastBalance = async (req, res) => {
|
||||
status: true,
|
||||
detail: {
|
||||
card_number: card_number,
|
||||
last_balance: 10000
|
||||
last_balance: last_balance
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -246,7 +252,7 @@ const checkLastBalanceCTS = async (card_number, uniqueCode, req) => {
|
||||
const protocol = req.protocol;
|
||||
const host = req.headers.host;
|
||||
const current_url = protocol+'://'+host;
|
||||
|
||||
|
||||
let config = {
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user