chỉnh log thông báo khi không có kết nối tới thiết bị
This commit is contained in:
parent
c4e631befe
commit
b030073be7
|
@ -656,7 +656,10 @@ function openAllDoorOfDevice(data) {
|
|||
success: function (data) {
|
||||
console.log(data.response);
|
||||
var html = "";
|
||||
if (data.response.ErrorCode === "999")
|
||||
html = "<span class='text-green'><i class='fa fa-check'></i> Mở <b>" + data.totals + "</b> cửa từ thiết bị <b>" + data.IP + "</b>.</span><br>";
|
||||
else
|
||||
html = "<span class='text-red'><i class='fa fa-remove'></i> Kết nối tới thiết bị <b>" + data.IP + "</b> thất bại.</span><br>";
|
||||
$("#logs-response").prepend(html);
|
||||
progressOpenDoor++;
|
||||
var percent = parseInt(progressOpenDoor / totalsDoor * 100);
|
||||
|
@ -723,7 +726,10 @@ function closeAllDoorOfDevice(data) {
|
|||
success: function (data) {
|
||||
console.log(data.response);
|
||||
var html = "";
|
||||
if (data.response.ErrorCode === "999")
|
||||
html = "<span class='text-green'><i class='fa fa-check'></i> Đóng <b>" + data.totals + "</b> cửa từ thiết bị <b>" + data.IP + "</b>.</span><br>";
|
||||
else
|
||||
html = "<span class='text-red'><i class='fa fa-remove'></i> Kết nối tới thiết bị <b>" + data.IP + "</b> thất bại.</span><br>";
|
||||
$("#logs-response").prepend(html);
|
||||
progressCloseDoor++;
|
||||
var percent = parseInt(progressCloseDoor / totalsDoorToClose * 100);
|
||||
|
|
Loading…
Reference in New Issue
Block a user