Commit 5e4738d7 authored by 姜春辉's avatar 姜春辉

fix: bug

parent 23072434
......@@ -51,7 +51,7 @@ namespace GS.Terminal.Identification.Enterprise.Logic
if (visitor != null)
{
Program.speakService.VoiceBySoundPlayer("识别成功");
LogicHandler.HandlerIdentify(visitor, false, score);
LogicHandler.HandlerIdentify(visitor, false, score);
return;
}
......@@ -59,7 +59,7 @@ namespace GS.Terminal.Identification.Enterprise.Logic
if (employee != null)
{
Program.speakService.VoiceBySoundPlayer("已识别");
LogicHandler.HandlerIdentify(employee, false, score);
LogicHandler.HandlerIdentify(employee, false, score);
return;
}
......@@ -67,7 +67,7 @@ namespace GS.Terminal.Identification.Enterprise.Logic
if (temp != null)
{
Program.speakService.VoiceBySoundPlayer("已识别");
LogicHandler.HandlerIdentify(temp, false, score);
LogicHandler.HandlerIdentify(temp, false, score);
return;
}
......
......@@ -251,7 +251,8 @@ namespace GS.Terminal.Identification.Enterprise.Logic.Core
/// <returns></returns>
internal static VisitInfo GetVisitInfoByCardNum(string cardNum)
{
return VisitInfo.Where(ss => ss.CardNum == cardNum).FirstOrDefault();
cardNum = cardNum.ToUpper();
return VisitInfo.Where(ss => ss.CardNum != null && ss.CardNum.ToUpper().Contains(cardNum)).FirstOrDefault();
}
/// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment