공시에서 부정문구 체크

This commit is contained in:
2018-06-07 18:09:36 +09:00
parent d074af571a
commit 1cd307b45a
2 changed files with 20 additions and 27 deletions

View File

@@ -226,9 +226,14 @@ namespace NewsCrawler
m_PriceCheckList.Enqueue(CheckData);
}
public TextCondition.RESULT CheckMatch(string strTitle)
{
return m_Condition.Match(strTitle);
}
void ProcessSearchAndBuy(NEWS_ITEM NewsItem)
{
TextCondition.RESULT MatchResult = m_Condition.Match(NewsItem.m_strTitle);
TextCondition.RESULT MatchResult = CheckMatch(NewsItem.m_strTitle);
switch(MatchResult.m_enType)
{
case TextCondition.TYPE.NEGATIVE: