node-red-contrib-gps
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -64,4 +64,2 @@ module.exports = function (RED) { | ||
msg.headers = response.headers | ||
msg.request = response.request | ||
payload.status = 1 | ||
@@ -68,0 +66,0 @@ payload.data = data |
@@ -40,7 +40,7 @@ module.exports = function (RED) { | ||
var data = response.data | ||
console.log(JSON.stringify(data)) | ||
if(data.ret && data.ret != 0) { | ||
throw new Error(data.msg ? data.msg : "参数有误") | ||
} | ||
msg.headers = response.headers | ||
msg.request = response.request | ||
payload.status = 1 | ||
@@ -52,3 +52,2 @@ payload.data = data | ||
msg.payload = payload | ||
console.log(11111111111111) | ||
node.send([msg, null]) | ||
@@ -55,0 +54,0 @@ |
@@ -62,4 +62,2 @@ module.exports = function (RED) { | ||
msg.headers = response.headers | ||
msg.request = response.request | ||
payload.status = 1 | ||
@@ -66,0 +64,0 @@ payload.dataArray = data |
{ | ||
"name": "node-red-contrib-gps", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "汽车在线 node red 节点", | ||
@@ -5,0 +5,0 @@ "main": "xxx.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
167059
14
206