From a54c0b4d0b675d201ec640557c245aa5d00724a7 Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Sat, 21 Jan 2017 00:04:48 +0800
Subject: [PATCH] 修正错误 - 只有在警报等级在1级以上才发布通知

---
 test.js |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/test.js b/test.js
index 0cc034a..80c2cc4 100644
--- a/test.js
+++ b/test.js
@@ -243,9 +243,15 @@
 // var data = "5a0000010003accf23d4515f00000000000000000030003e198c00110814050300060034001400000004001f000301040200000000000000000003490056048c1f02000000000000000000000000003c5b";
 // console.log(data.length);
 
-var moment = require('moment');
-var a = {
-    data: {a:1, b:2},
-    time: moment().format('YYYY-MM-DD HH:mm:ss')
-};
-console.log(JSON.stringify(a));
\ No newline at end of file
+// var moment = require('moment');
+// var a = {
+//     data: {a:1, b:2},
+//     time: moment().format('YYYY-MM-DD HH:mm:ss')
+// };
+// console.log(JSON.stringify(a));
+
+var a = 999;
+var b = parseInt(a / 256);
+var c = a % 256;
+console.log(b + " | " + c);
+console.log("0" + b)
\ No newline at end of file

--
Gitblit v1.8.0