|
@@ -413,7 +413,8 @@
|
|
Module.onRuntimeInitialized = function () {
|
|
Module.onRuntimeInitialized = function () {
|
|
isFinish = true;
|
|
isFinish = true;
|
|
};
|
|
};
|
|
- var timerInterval = null, timeInterval = 0;
|
|
|
|
|
|
+ var timerInterval = null,
|
|
|
|
+ timeInterval = 0;
|
|
function connect(type) {
|
|
function connect(type) {
|
|
$.ajax({
|
|
$.ajax({
|
|
url: baseUrl + '/api/resources/user/cloud/connect',
|
|
url: baseUrl + '/api/resources/user/cloud/connect',
|
|
@@ -484,13 +485,13 @@
|
|
clearInterval(intervaler);
|
|
clearInterval(intervaler);
|
|
quit();
|
|
quit();
|
|
}, 3000);
|
|
}, 3000);
|
|
- timerInterval = clearTimeout()
|
|
|
|
- return
|
|
|
|
|
|
+ timerInterval = clearTimeout();
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
timerInterval = setTimeout(() => {
|
|
timerInterval = setTimeout(() => {
|
|
connect(type);
|
|
connect(type);
|
|
timeInterval += 1;
|
|
timeInterval += 1;
|
|
- }, 3000)
|
|
|
|
|
|
+ }, 3000);
|
|
} else {
|
|
} else {
|
|
$.toast('画面异常,请重新进入', 'text');
|
|
$.toast('画面异常,请重新进入', 'text');
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -546,7 +547,7 @@
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
clearInterval(intervaler);
|
|
clearInterval(intervaler);
|
|
quit();
|
|
quit();
|
|
- }, 3000)
|
|
|
|
|
|
+ }, 3000);
|
|
}
|
|
}
|
|
}, 3000);
|
|
}, 3000);
|
|
|
|
|
|
@@ -566,7 +567,7 @@
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
wsss.close();
|
|
wsss.close();
|
|
quit();
|
|
quit();
|
|
- }, 3000)
|
|
|
|
|
|
+ }, 3000);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
ws.addEventListener('message', function (event) {
|
|
ws.addEventListener('message', function (event) {
|
|
@@ -1700,8 +1701,10 @@
|
|
JSON.stringify({
|
|
JSON.stringify({
|
|
type: 'setPhoneSize',
|
|
type: 'setPhoneSize',
|
|
data: {
|
|
data: {
|
|
|
|
+ id: config.id,
|
|
width: config.width,
|
|
width: config.width,
|
|
height: config.height,
|
|
height: config.height,
|
|
|
|
+ dpi: config.dpi,
|
|
},
|
|
},
|
|
}),
|
|
}),
|
|
);
|
|
);
|
|
@@ -1713,6 +1716,7 @@
|
|
id: config.id,
|
|
id: config.id,
|
|
width: config.width,
|
|
width: config.width,
|
|
height: config.height,
|
|
height: config.height,
|
|
|
|
+ dpi: config.dpi,
|
|
desc: '分辨率修改', // 可选
|
|
desc: '分辨率修改', // 可选
|
|
},
|
|
},
|
|
}),
|
|
}),
|
|
@@ -1729,8 +1733,10 @@
|
|
contentType: 'application/json; charset=UTF-8',
|
|
contentType: 'application/json; charset=UTF-8',
|
|
data: JSON.stringify({
|
|
data: JSON.stringify({
|
|
userCardId: window.userCardId,
|
|
userCardId: window.userCardId,
|
|
|
|
+ // id: config.id,
|
|
width: config.width,
|
|
width: config.width,
|
|
height: config.height,
|
|
height: config.height,
|
|
|
|
+ dpi: config.dpi,
|
|
resolvingPowerId: config.id,
|
|
resolvingPowerId: config.id,
|
|
}),
|
|
}),
|
|
});
|
|
});
|