From a17738e1545ff7dbef6398b8ec1eab93ab59c9a1 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 30 六月 2022 19:14:47 +0800
Subject: [PATCH] '功能完善'

---
 ConsoleApplication/RecognitionManager.cpp |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ConsoleApplication/RecognitionManager.cpp b/ConsoleApplication/RecognitionManager.cpp
index bec0797..b2b30b3 100644
--- a/ConsoleApplication/RecognitionManager.cpp
+++ b/ConsoleApplication/RecognitionManager.cpp
@@ -53,11 +53,11 @@
 		{
 			if (rowData[(index-1) * 4] > 0) {
 				//涨停
-				(tradeData).limitPrice = true;
+				(tradeData).limitPrice = LIMIT_PRICE_UP;
 			}
 			else
 			{
-				(tradeData).limitPrice = false;
+				(tradeData).limitPrice = LIMIT_PRICE_NORMAL;
 			}
 		}
 		break;
@@ -405,16 +405,16 @@
 	//LogUtil::debug("像素值:%d\n", pixelCount);
 
 	if (abs(pixelCount - 39) < 5) {
-		return BUY;
+		return OPERATE_BUY;
 	}
 	else if (abs(pixelCount - 51) < 5) {
-		return SELL;
+		return OPERATE_SELL;
 	}
 	else if (abs(pixelCount - 105) < 5) {
-		return BUY_CANCEL;
+		return OPERATE_BUY_CANCEL;
 	}
 	else if (abs(pixelCount - 117) < 5) {
-		return SELL_CANCEL;
+		return OPERATE_SELL_CANCEL;
 	}
 
 	//pixelSet.insert(pixelCount);
@@ -438,7 +438,7 @@
 
 	//}
 
-	return OPERATE_ERROR;
+	return OPERATE_OPERATE_ERROR;
 }
 
 std::string RecognitionManager::recognitionPrice(std::string cpath) {

--
Gitblit v1.8.0