浏览代码

Z991239-5255 #comment 临时解决spgen不匹配的编译问题。。。

oilyang 1 年之前
父节点
当前提交
089640a19c

+ 1 - 1
Module/mod_ResourceWatcher/mod_ResourceWatcher.cpp

@@ -2184,7 +2184,7 @@ void ResourceWatcherEntity::InstallSogou(SpReqAnsContext<ResourceWatcherService_
             HealthManagerService_ControlTerminalLife_Ans detAns;
             detReq.cmdType = 4;
             detReq.reason = 0;
-            eErr = (*m_pRWClient)(EntityResource::getLink().upgradeLink())->ControlTerminalLife(detReq, detAns, 3000);
+            eErr = m_pRWClient->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");
             }

+ 2 - 2
Module/mod_RomoteController/RemoteControllerCnn.cpp

@@ -1489,7 +1489,7 @@ ErrorCodeEnum CRemoteControllerCnn::HandleEnterMaintainModeReq(const CSmartPoint
 		req.state = "M";
 
 		HealthManagerService_EnterState_Ans ans = {};		
-		rc = (*pClient)(EntityResource::getLink().upgradeLink())->EnterState(req, ans, 10000);
+		rc = pClient->EnterState(req, ans, 10000);
 		pClient->GetFunction()->CloseSession();		
 	}
 	else {
@@ -1537,7 +1537,7 @@ ErrorCodeEnum CRemoteControllerCnn::HandleExitMaintainModeReq(const CSmartPointe
 		req.state = "M";
 
 		HealthManagerService_ExitState_Ans ans = {};		
-		rc = (*pClient)(EntityResource::getLink().upgradeLink())->ExitState(req, ans, 10000);
+		rc = pClient->ExitState(req, ans, 10000);
 		pClient->GetFunction()->CloseSession();		
 	} else {
 		pClient->SafeDelete();