|
|
|
|
@ -424,7 +424,7 @@ |
|
|
|
|
formdata.append('latidute', tags.lat); |
|
|
|
|
formdata.append('content', txt); |
|
|
|
|
$.ajax({ |
|
|
|
|
url: "http://52.136.119.150:81/appData/putFile", type: "post", contentType: false, processData: false, dataType: 'json', data: formdata, success: function (res) { |
|
|
|
|
url: "http://152.136.119.150:81/appData/putFile", type: "post", contentType: false, processData: false, dataType: 'json', data: formdata, success: function (res) { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
console.log('上报成功'); |
|
|
|
|
reportIot(txt); |
|
|
|
|
@ -450,7 +450,7 @@ |
|
|
|
|
"platformCode": "DIANXIN", |
|
|
|
|
} |
|
|
|
|
$.ajax({ |
|
|
|
|
url: "http://52.136.119.150:81/appData/escalation", type: "post", contentType: "application/json;charset=UTF-8", dataType: "json", data: JSON.stringify(data), success: function (res) { |
|
|
|
|
url: "http://152.136.119.150:81/appData/escalation", type: "post", contentType: "application/json;charset=UTF-8", dataType: "json", data: JSON.stringify(data), success: function (res) { |
|
|
|
|
let _data = JSON.parse(res.data); |
|
|
|
|
if (_data.resultCode == 0) { |
|
|
|
|
console.log('上报成功2'); |
|
|
|
|
|