فهرست منبع

Z991239-6201 #comment feat: 简化判断逻辑,采用框架方法判定

Signed-Off-By: commit-hook
刘文涛80174520 4 ماه پیش
والد
کامیت
edc9c34295
1فایلهای تغییر یافته به همراه7 افزوده شده و 18 حذف شده
  1. 7 18
      Module/mod_cardissuerstore/mod_cardissuer.h

+ 7 - 18
Module/mod_cardissuerstore/mod_cardissuer.h

@@ -152,15 +152,10 @@ public:
 					return;
 				}
 				else if (!m_fsm.IsInMainPage()) {//判断是否在首页
-					CSimpleStringA strValue;
-					if (this->GetFunction()->GetSysVar("UIState", strValue) == Error_Succeed && strValue.Compare("M") == 0) {
-						DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("PreOnline UIState is M,continue handle");
-					}
-					else {
-						DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("PreOnline req is unhandled UIState is %s,CardissuerStore is busying", strValue.GetData());
-						ctx->Answer(Error_InvalidState, CardIssuerStore_UserErrorCode_CardActive_CardStore_Issuing);
-						return;
-					}
+					DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("PreOnline req is unhandled ,CardissuerStore is busying");
+					ctx->Answer(Error_InvalidState, CardIssuerStore_UserErrorCode_CardActive_CardStore_Issuing);
+					return;
+
 				}
 			}
 			PreOnlineEvent* e = new PreOnlineEvent();
@@ -635,15 +630,9 @@ public:
 			return;
 		}
 		else if (!m_fsm.IsInMainPage()) {
-			CSimpleStringA strValue;
-			if (this->GetFunction()->GetSysVar("UIState", strValue) == Error_Succeed && strValue.Compare("M") == 0) {
-				DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("PreOnline UIState is M,continue handle");
-			}
-			else {
-				DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("PreOnlineCrossJS req is unhandled UIState is %s,CardissuerStore is busying", strValue.GetData());
-				ctx->Answer(Error_InvalidState, CardIssuerStore_UserErrorCode_CardActive_CardStore_Issuing);
-				return;
-			}
+			DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("PreOnlineCrossJS req is unhandled ,CardissuerStore is busying");
+			ctx->Answer(Error_InvalidState, CardIssuerStore_UserErrorCode_CardActive_CardStore_Issuing);
+			return;
 		}
 		else {
 			PreOnlineCrossJSEvent* pEvt = new PreOnlineCrossJSEvent();