Explorar o código

Z991239-527 #comment fix: 服务器上缺少 bthprops.cpl 文件,导致 mod_CardSwper 启动失败,先不启动该实体;2. 放开 系统变量 EntryPermit

gifur %!s(int64=5) %!d(string=hai) anos
pai
achega
27aa7a8148
Modificáronse 2 ficheiros con 10 adicións e 6 borrados
  1. 5 4
      addin/cfg/shell.ini.in
  2. 5 2
      spbase/SpSecureClient.cpp

+ 5 - 4
addin/cfg/shell.ini.in

@@ -108,12 +108,13 @@ HighVoltageFour=0,@LIB_PREFIX@mod_highVoltageFour@LIB_SUFFIX@,0xF0F
 HighVoltageFifth=0,@LIB_PREFIX@mod_highVoltageFifth@LIB_SUFFIX@,0xF10
 
 [Startup]
-Number=5
+Number=4
 1=HelloService
 2=HelloClient
 3=PinPad
-4=CardSwiper
-5=CenterSetting
+;the test server run mod_CardSwiper failed because lack of bthprops.cpl, so we seal it.
+;4=CardSwiper 
+4=CenterSetting
 
 [Test]
 Number=6
@@ -137,7 +138,7 @@ AlwaysUpdate=HighVoltage;HighVoltageSecond;HighVoltageThird;HighVoltageFour;High
 ;VideoWindowInitializeParam=IEBrowser,"hwnd1_remote:(1728,140,1024,768),hwnd2_local(2830,800,320,240)"
 ;LockScreen=TimePolicy,"N"
 ;ActiveTrackingCamera=FaceTracking,"E"
-;EntryPermit=AccessAuthorization,"I"
+EntryPermit=AccessAuthorization,"I"
 ;TerminalStage=HealthManager,"A"
 ;IEUrl=HealthManager,"http://99.8.42.90/RVC.Web/default.aspx http://99.8.42.90/RVC.Web/default2.aspx"
 ;RunState=HealthManager,"O"

+ 5 - 2
spbase/SpSecureClient.cpp

@@ -106,8 +106,11 @@ bool SpSecureClient::ConnectFromConfig(int nOption)
 	int nActOption = nOption;
 
 	CSimpleStringA strVal;
-	
-	m_pEntity->GetFunction()->GetSysVar("EntryPermit", strVal);
+	const ErrorCodeEnum result = m_pEntity->GetFunction()->GetSysVar("EntryPermit", strVal);
+	if (Error_Succeed != result) {
+		Dbg("Read SysVal '' failed, ec=%s", SpStrError(result));
+		return false;
+	}
 	if (strVal == "L" && stricmp(pEntityName, "AccessAuthorization") != 0 && stricmp(pEntityName, "Initializer") != 0)
 		nActOption = 2;	// ÓÅÏÈʹÓûº´æÃÜÔ¿