private void zk_VerifyOkEvent(VerifyOkEventArgs e) { if (e == null) { return; } string strId = e.strUserId; VerifyMethod method = e.verifyMode; string strIp = e.strDeviIp; for (int iIndex = 0; iIndex < listZk.Count; iIndex++) { if (listZk[iIndex].StrIp == strIp) { string strGroup = ""; string strUser = ""; commonCls.GetZkUserGroup(strId, ref strGroup, ref strUser); listZk[iIndex].doorInfo.StrGroup = strGroup; listZk[iIndex].doorInfo.StrUser = strUser; if (method == VerifyMethod.密码) { listZk[iIndex].doorInfo.StrOpenType = OpenDoorType.密码.ToString(); } else if (method == VerifyMethod.人脸) { listZk[iIndex].doorInfo.StrOpenType = OpenDoorType.人脸.ToString(); } else if (method == VerifyMethod.刷卡) { listZk[iIndex].doorInfo.StrOpenType = OpenDoorType.刷卡.ToString(); } else if (method == VerifyMethod.指纹) { listZk[iIndex].doorInfo.StrOpenType = OpenDoorType.指纹.ToString(); } break; } } }