3529-fix(sms): static response for backTest #850

Merged
carlosjr merged 1 commits from 3529-client_sms into dev 2022-01-18 12:51:46 +00:00
1 changed files with 7 additions and 6 deletions

View File

@ -52,12 +52,13 @@ module.exports = Self => {
let response;
try {
if (process.env.NODE_ENV !== 'production')
params.fake = 1;
const jsonTest = {
json: params
};
response = await got.post(smsConfig.uri, jsonTest).json();
response = {result: [{status: 'ok'}]};
else {
const jsonTest = {
json: params
};
response = await got.post(smsConfig.uri, jsonTest).json();
}
} catch (e) {
console.error(e);
}