This commit is contained in:
2025-12-11 17:17:01 +08:00
parent 89d7899e47
commit 3bb2a180f1
2 changed files with 145 additions and 25 deletions
+1 -1
View File
@@ -1303,7 +1303,7 @@
$.get(videoHost + 'api/v1/login?username=' + VideoUserName + '&password=' + VideoPassWord, function (data1) {
that.authToken = data1.AuthToken;
$.get(videoHost + 'api/v1/device/channeltree?token=' + that.authToken, function (data2) {
for (var i = 0; i < data2.length && i <= 0; i++) {
for (var i = 1; i < data2.length && i <= 1; i++) {
$.get(videoHost + 'api/v1/device/channeltree?serial=' + data2[i].serial + '&token=' + that.authToken, function (data3) {
for (var j = 0; j < data3.length; j++) {
that.videoids.push(data3[j].id);