|
|
@@ -94,9 +94,15 @@ public:
|
|
|
//有用:扫描指纹(73294)
|
|
|
void GetFingerPrint(SpReqAnsContext<FingerPrintService_GetFingerPrint_Req, FingerPrintService_GetFingerPrint_Ans>::Pointer ctx)
|
|
|
{
|
|
|
- GetFingerEvent* e = new GetFingerEvent();
|
|
|
- e->ctx = ctx;
|
|
|
- m_fsm.PostEventFIFO(e);
|
|
|
+ if(!m_fsm.GetDevInitFlag()){
|
|
|
+ ctx->Answer(Error_DevNotAvailable);
|
|
|
+ LogWarn(Severity_Middle, Error_DevNotAvailable, FingerPrint_UserErrorCode_DevOpen_Failed_Registe, "GetFingerPrint but DevOpen failed.");
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ GetFingerEvent* e = new GetFingerEvent();
|
|
|
+ e->ctx = ctx;
|
|
|
+ m_fsm.PostEventFIFO(e);
|
|
|
+ }
|
|
|
}
|
|
|
//有用:生成指纹模板(161)
|
|
|
void GenerateTemplate(SpReqAnsContext<FingerPrintService_GenerateTemplate_Req, FingerPrintService_GenerateTemplate_Ans>::Pointer ctx)
|