3529-fix(sms): static response for backTest #850
|
@ -52,12 +52,13 @@ module.exports = Self => {
|
||||||
let response;
|
let response;
|
||||||
try {
|
try {
|
||||||
if (process.env.NODE_ENV !== 'production')
|
if (process.env.NODE_ENV !== 'production')
|
||||||
params.fake = 1;
|
response = {result: [{status: 'ok'}]};
|
||||||
|
else {
|
||||||
const jsonTest = {
|
const jsonTest = {
|
||||||
json: params
|
json: params
|
||||||
};
|
};
|
||||||
response = await got.post(smsConfig.uri, jsonTest).json();
|
response = await got.post(smsConfig.uri, jsonTest).json();
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue