if(!card_swiped)
init_buffers();
if(!check_permit(transaction))
return ERR;
if(!oper_check())
return ERR;
if(!logon_check())
return ERR;
2.等待刷卡
if(!card_swiped)
{
if(inEMVGetInput(mode_buf[transaction]) != SUCCESS)
return ERR;
}
while(1)
{
//等待刷卡或者插卡
ok = wait_for_input(iCardInterfaceMode);
if(ok < 0)
{
init_buffers();
return(ok);
}
else if(ok == MAGCARD) /*刷卡情况*/
{
}
else if(ok == ICCARD/* && envToint("#ICCARD", 1)*/) /*插卡情况*/
{
}
else if(ok == KBCARD) /*手输情况*/
{
}
else
{
}
}