|
@@ -151,6 +151,17 @@ public:
|
|
|
ctx->Answer(Error_InvalidState, CardIssuerStore_UserErrorCode_CardActive_CardStore_Issuing);
|
|
|
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;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
PreOnlineEvent* e = new PreOnlineEvent();
|
|
|
e->ctx = ctx;
|
|
@@ -623,6 +634,17 @@ public:
|
|
|
ctx->Answer(Error_InvalidState, CardIssuerStore_UserErrorCode_CardActive_CardStore_Issuing);
|
|
|
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;
|
|
|
+ }
|
|
|
+ }
|
|
|
else {
|
|
|
PreOnlineCrossJSEvent* pEvt = new PreOnlineCrossJSEvent();
|
|
|
pEvt->ctx = ctx;
|