Update main.js

This commit is contained in:
hl 2018-09-29 17:43:56 +08:00
parent 4e680ef807
commit 1fa1ddd6dc

12
main.js
View File

@ -157,6 +157,11 @@ function sendNotification(message, callback) {
adapter.log.info('adapter.config.smsUrl' + adapter.config.smsUrl);
adapter.log.info('adapter.config.smsLoginUrl' + adapter.config.smsLoginUrl);
var mobiles = '15273732255';
var content = '报警提醒';
smsLogin(mobiles,content);
/*
request(adapter.config.smsUrl, function (error, response, body) {
adapter.log.info('response.statusCode' + response.statusCode);
@ -170,16 +175,13 @@ function sendNotification(message, callback) {
var data = JSON.parse(body);
// do something with data
adapter.log.info(JSON.parse(data));
var mobiles = '15273732255';
var content = '报警提醒';
smsLogin(mobiles,content);
} catch (e) {
adapter.log.error('Cannot parse answer');
}
}
});
*/
/*
pushover.send(message, (err, result) => {