|
@@ -1641,22 +1641,6 @@
|
|
// centeredSlides: true,
|
|
// centeredSlides: true,
|
|
// });
|
|
// });
|
|
function setPhoneSize(config) {
|
|
function setPhoneSize(config) {
|
|
- $.ajax({
|
|
|
|
- url:
|
|
|
|
- baseUrl +
|
|
|
|
- '/api/resources/v5/machine/resolution/operationResolvingPower',
|
|
|
|
- headers: {
|
|
|
|
- Authorization: token,
|
|
|
|
- },
|
|
|
|
- type: 'post',
|
|
|
|
- dataType: 'json',
|
|
|
|
- data: {
|
|
|
|
- userCardId: window.userCardId,
|
|
|
|
- width: config.width,
|
|
|
|
- height: config.height,
|
|
|
|
- resolvingPowerId: config.id,
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
wsss.send(
|
|
wsss.send(
|
|
JSON.stringify({
|
|
JSON.stringify({
|
|
type: 'setPhoneSize',
|
|
type: 'setPhoneSize',
|
|
@@ -1678,6 +1662,23 @@
|
|
},
|
|
},
|
|
}),
|
|
}),
|
|
);
|
|
);
|
|
|
|
+ $.ajax({
|
|
|
|
+ url:
|
|
|
|
+ baseUrl +
|
|
|
|
+ '/api/resources/v5/machine/resolution/operationResolvingPower',
|
|
|
|
+ headers: {
|
|
|
|
+ Authorization: token,
|
|
|
|
+ },
|
|
|
|
+ type: 'post',
|
|
|
|
+ dataType: 'json',
|
|
|
|
+ contentType: 'application/json; charset=UTF-8',
|
|
|
|
+ data: JSON.stringify({
|
|
|
|
+ userCardId: window.userCardId,
|
|
|
|
+ width: config.width,
|
|
|
|
+ height: config.height,
|
|
|
|
+ resolvingPowerId: config.id,
|
|
|
|
+ }),
|
|
|
|
+ });
|
|
window.currentPhoneSize = config;
|
|
window.currentPhoneSize = config;
|
|
}
|
|
}
|
|
// wsss.addEventListener('message', function (event) {
|
|
// wsss.addEventListener('message', function (event) {
|