|
@@ -93,6 +93,7 @@ var adapterTestFailedCount = 0;
|
|
|
var apdaterTestAllBefore = 0;
|
|
|
|
|
|
var globalSogouNewInstall = false;
|
|
|
+var globalSogouNewVesion = false;
|
|
|
|
|
|
|
|
|
function clearAdapterSelectedValue()
|
|
@@ -1542,7 +1543,7 @@ $(function () {
|
|
|
req.restartApp = false;
|
|
|
req.restartPC = false;
|
|
|
req.timeout = 125000;
|
|
|
-
|
|
|
+ globalSogouNewVesion = false;
|
|
|
utilStartSubmitDialog("输入法安装可能会花比较长时间,请耐心等候...");
|
|
|
RVC.HealthmanagerEntityCtrl.DeployTerminal(req, function(ret) {
|
|
|
utilStopSubmitDialog();
|
|
@@ -1563,13 +1564,9 @@ $(function () {
|
|
|
tip += '<br>安装时间:<strong>' + sogouinstalltm + '</strong>';
|
|
|
$('#guide_sogou_install_finished_content').html(tip);
|
|
|
SogouInstallStateSwitch(2);
|
|
|
-
|
|
|
if(sogouNewVersion === 1) {
|
|
|
- utilStartAlertDialog("识别到安装的是新版的输入法<br/>请先到下载网址(http://rvcterminalmonitor.paas.cmbchina.cn/#/downloads)完成UOS补丁包的下载和安装!否则影响应用外使用输入法(如果已经安装请忽略)", function() {
|
|
|
- //RVC.GuideController.gotoPage(DEPLOY.DeployStep_3rdParty_FontInstall, true);
|
|
|
- });
|
|
|
+ globalSogouNewVesion = true;
|
|
|
}
|
|
|
-
|
|
|
} else if(sogouinstalltm != '') {
|
|
|
tip += '<br><br>版本:<strong style="color:#FF0000;">' + '无法获取版本信息' + '</strong>';
|
|
|
tip += '<br>安装时间:<strong>' + sogouinstalltm + '</strong>';
|
|
@@ -1611,6 +1608,7 @@ $(function () {
|
|
|
if(ret.errorCode === 0) {
|
|
|
let result = JSON.parse(ret[RVC.EntityController.sigResponseUUID])
|
|
|
if(result.result == 0) {
|
|
|
+ globalSogouNewVesion = false;
|
|
|
utilStartAlertDialog('卸载成功!', function() {
|
|
|
globalSogouNewInstall = false;
|
|
|
DisplaySogouInstallState();
|
|
@@ -1678,6 +1676,7 @@ $(function () {
|
|
|
req.restartApp = false;
|
|
|
req.restartPC = false;
|
|
|
req.timeout = 35000;
|
|
|
+ globalSogouNewVesion = false;
|
|
|
utilStartSubmitDialog();
|
|
|
RVC.HealthmanagerEntityCtrl.DeployTerminal(req, function(ret) {
|
|
|
utilStopSubmitDialog();
|
|
@@ -1688,15 +1687,21 @@ $(function () {
|
|
|
var tip = '检测到输入法已安装!';
|
|
|
var sogouversion = '';
|
|
|
var sogouinstalltm = '';
|
|
|
+ var sogouNewVersion = 0;
|
|
|
if(result.array2.length === 3) {
|
|
|
sogouversion = result.array2[0];
|
|
|
sogouinstalltm = result.array2[2];
|
|
|
+ sogouNewVersion = result.array1[0];
|
|
|
}
|
|
|
if(sogouversion !== '') {
|
|
|
tip += '<br><br>版本:<strong>' + sogouversion + '</strong>';
|
|
|
tip += '<br>安装时间:<strong>' + sogouinstalltm + '</strong>';
|
|
|
SogouInstallStateSwitch(1);
|
|
|
$('#guide_sogou_installed_content').html(tip);
|
|
|
+ if(sogouNewVersion === 1) {
|
|
|
+ globalSogouNewVesion = true;
|
|
|
+ }
|
|
|
+
|
|
|
} else if(sogouinstalltm != ''){
|
|
|
tip = '检测到输入法已安装!但相关服务进程未启动或异常,请优先重启设备,如果重启后仍出现问题,请点击下方<strong>卸载</strong>菜单后重装!'
|
|
|
tip += '<br><br>版本:<strong style="color:#FF0000;">' + '无法获取版本信息' + '</strong>';
|
|
@@ -2146,7 +2151,30 @@ $(function () {
|
|
|
RVC.GuideController.gotoPage(DEPLOY.DeployStep_GetTerminalInfo);
|
|
|
});
|
|
|
} else {
|
|
|
- RVC.GuideController.gotoPage(DEPLOY.DeployStep_GetTerminalInfo);
|
|
|
+ if(globalSogouNewVesion) {
|
|
|
+ let req1 = new Request();
|
|
|
+ req1.mode = 3;
|
|
|
+ req1.reserved1 = 0;
|
|
|
+ req1.reserved2 = 0;
|
|
|
+ req1.reserverd3 = 'libdde-file-manager';
|
|
|
+ req1.reserverd4 = '5.2.11.2-1';
|
|
|
+ RVC.ResourceWatcherEntity.GetThirdPartyInstallState(req1, function(ret) {
|
|
|
+ if(ret.errorCode === 0) {
|
|
|
+ let result = JSON.parse(ret[RVC.EntityController.sigResponseUUID])
|
|
|
+ if(result.status == 0 || result.status == 2) {
|
|
|
+ utilStartAlertDialog("检测到安装的是新版的输入法!请先到下载站点<br/>(http://rvcterminalmonitor.paas.cmbchina.cn/#/downloads)<br/>完成UOS补丁包的下载和安装!否则影响应用外使用输入法");
|
|
|
+ } else if(result.status == 1) {
|
|
|
+ RVC.GuideController.gotoPage(DEPLOY.DeployStep_GetTerminalInfo);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ utilShowToast("检测UOS补丁包安装状态失败:" + ErrorCodeStringfy(ret.errorCode), 3000, function(){
|
|
|
+ RVC.GuideController.gotoPage(DEPLOY.DeployStep_GetTerminalInfo);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ RVC.GuideController.gotoPage(DEPLOY.DeployStep_GetTerminalInfo);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|