|
@@ -528,7 +528,9 @@
|
|
quit();
|
|
quit();
|
|
}, 3000);
|
|
}, 3000);
|
|
}
|
|
}
|
|
- } else if (res.status === 5200) {
|
|
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (res.status === 5200) {
|
|
if (timeInterval > 7) {
|
|
if (timeInterval > 7) {
|
|
$.toast('网络异常,请稍后重试', 'text');
|
|
$.toast('网络异常,请稍后重试', 'text');
|
|
timerInterval = clearTimeout();
|
|
timerInterval = clearTimeout();
|
|
@@ -541,12 +543,19 @@
|
|
connect(type);
|
|
connect(type);
|
|
timeInterval += 1;
|
|
timeInterval += 1;
|
|
}, 3000);
|
|
}, 3000);
|
|
- } else {
|
|
|
|
- $.toast('画面异常,请重新进入', 'text');
|
|
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (res.status === 5220) {
|
|
|
|
+ $.toast('云手机正在一键修复中', 'text');
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
quit();
|
|
quit();
|
|
}, 3000);
|
|
}, 3000);
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
+ $.toast('画面异常,请重新进入', 'text');
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ quit();
|
|
|
|
+ }, 3000);
|
|
},
|
|
},
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -1593,20 +1602,21 @@
|
|
},
|
|
},
|
|
}),
|
|
}),
|
|
);
|
|
);
|
|
|
|
+ // XXX: 去除了,改为中台发送
|
|
// 通知其他在线端
|
|
// 通知其他在线端
|
|
- wsss.send(
|
|
|
|
- JSON.stringify({
|
|
|
|
- type: 'forwardMsg',
|
|
|
|
- data: {
|
|
|
|
- code: 'phoneSizeChange',
|
|
|
|
- id: config.id,
|
|
|
|
- width: config.width,
|
|
|
|
- height: config.height,
|
|
|
|
- dpi: config.dpi,
|
|
|
|
- desc: '分辨率修改', // 可选
|
|
|
|
- },
|
|
|
|
- }),
|
|
|
|
- );
|
|
|
|
|
|
+ // wsss.send(
|
|
|
|
+ // JSON.stringify({
|
|
|
|
+ // type: 'forwardMsg',
|
|
|
|
+ // data: {
|
|
|
|
+ // code: 'phoneSizeChange',
|
|
|
|
+ // id: config.id,
|
|
|
|
+ // width: config.width,
|
|
|
|
+ // height: config.height,
|
|
|
|
+ // dpi: config.dpi,
|
|
|
|
+ // desc: '分辨率修改', // 可选
|
|
|
|
+ // },
|
|
|
|
+ // }),
|
|
|
|
+ // );
|
|
// 上报分辨率
|
|
// 上报分辨率
|
|
$.ajax({
|
|
$.ajax({
|
|
url:
|
|
url:
|