mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 10:46:28 +00:00
change url cts from env
This commit is contained in:
@@ -1662,15 +1662,14 @@ const validateReplacement = async (req, res) => {
|
||||
|
||||
// if (is_warranty == true) {
|
||||
let result = {};
|
||||
const baseUrl = 'https://appdev.kci.id/cts/v2/api/info/last-balance'
|
||||
const bearer = 'Mv@2025qwertyuiopzxcvbnm'
|
||||
// const baseUrl = 'https://appdev.kci.id/cts/v2/api/info/last-balance'
|
||||
const baseUrl = `${process.env.CTS_URL}/cts/v2/api/info/last-balance`
|
||||
const payload = {
|
||||
card_number: card_number,
|
||||
};
|
||||
let config = {
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': 'Bearer ' + bearer
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
};
|
||||
const url = baseUrl;
|
||||
@@ -2671,8 +2670,9 @@ const getLastBalanceCTS = async (req, res) => {
|
||||
try {
|
||||
let uniqueCode = helper.getUniqueCode();
|
||||
let result = {};
|
||||
const baseUrl = 'https://appdev.kci.id/cts/v2/api/info/last-balance'
|
||||
const bearer = 'Mv@2025qwertyuiopzxcvbnm'
|
||||
// const baseUrl = 'https://appdev.kci.id/cts/v2/api/info/last-balance'
|
||||
const baseUrl = `${process.env.CTS_URL}/cts/v2/api/info/last-balance`
|
||||
const bearer = `${process.env.CTS_BEARER}`
|
||||
|
||||
console.log(
|
||||
`${uniqueCode} [ REQUEST GET LAST BALANCE CTS ]: ${JSON.stringify(req.body)}`
|
||||
|
||||
Reference in New Issue
Block a user