diff --git a/modules/client/back/methods/sms/send.js b/modules/client/back/methods/sms/send.js index 4e088d6ee..08daf83a1 100644 --- a/modules/client/back/methods/sms/send.js +++ b/modules/client/back/methods/sms/send.js @@ -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); }