Bladeren bron

Z991239-5565 #comment feat: 去掉uos输入法安装重启,新版输入法用不着了

陈纪林80310970 1 jaar geleden
bovenliggende
commit
5758055f41
1 gewijzigde bestanden met toevoegingen van 0 en 28 verwijderingen
  1. 0 28
      Module/mod_ResourceWatcher/mod_ResourceWatcher.cpp

+ 0 - 28
Module/mod_ResourceWatcher/mod_ResourceWatcher.cpp

@@ -2310,34 +2310,6 @@ void ResourceWatcherEntity::InstallSogou(SpReqAnsContext<ResourceWatcherService_
     ctx->Ans.result = tmpResult;
     ctx->Ans.msg = tmpMsg;
     ctx->Answer(tmpResult, warnCode);
-
-
-    if (sogouInstalled && doTryRestart && !info.program.IsTSFVersion()) {
-        HealthManagerService_ClientBase* m_pRWClient = new HealthManagerService_ClientBase(this);
-        ErrorCodeEnum eErr = m_pRWClient->Connect();
-
-        if (eErr != Error_Succeed) {
-            DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("HealthManager connected failed.");
-            m_pRWClient->SafeDelete();
-            m_pRWClient = NULL;
-        }
-        else {
-            HealthManagerService_ControlTerminalLife_Req detReq;
-            HealthManagerService_ControlTerminalLife_Ans detAns;
-            detReq.cmdType = 4;
-            detReq.reason = 0;
-            eErr = (*m_pRWClient)(EntityResource::getLink().upgradeLink())->ControlTerminalLife(detReq, detAns, 3000);
-            if (eErr == Error_Succeed) {
-                LogWarn(Severity_Low, Error_Debug, LOG_RESOURCEWATCHE_RESTARTPC_AFTER_INSTALLED_SOGOUINPUT, "Ask HealthManagerService for restarting PC succ after installing sogouinput");
-            }
-            else {
-                LogWarn(Severity_Middle, Error_Unexpect, 0, CSimpleStringA::Format("HealthManagerService::ControlTerminalLife failed: %s", SpStrError(eErr)));
-                DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setResultCode("RTA5A07")("HealthManagerService::ControlTerminalLife failed: %s", SpStrError(eErr));
-            }
-            m_pRWClient->GetFunction()->CloseSession();
-            m_pRWClient = NULL;
-        }
-    }
 #else
 
     //win-sogou  包名