Ver código fonte

一些更新

张洋 6 anos atrás
pai
commit
65faa932fd

BIN
bin/Win32/Debug/zhipuzi_pay_plugin/zpzDll.dll


+ 7 - 2
zhipuzi_pay_plugin/helper/CBitmapHelper.cpp

@@ -317,13 +317,18 @@ bool CBitmapHelper::OcrRect(tesseract::TessBaseAPI& tess, LPRECT lpRect, std::st
 			//换行键,到了末尾了
 			result = szRes;
 
+			if (atoi(result.c_str()) >= 5000)
+			{
+				result = "0.00";
+			}
+
 			break;
 		}
 		else if (utf8_ret[i] == -62 && utf8_ret[i + 1] == -91)
 		{
 			//这个是人民币符号¥
-			i += 1;
-			continue;
+			//i += 1;
+			//continue;
 		}
 		else
 		{

+ 4 - 1
zhipuzi_pay_plugin/wnd/CValueWnd.cpp

@@ -748,12 +748,15 @@ void CValueWnd::UpdateKexian(const char* data, int length)
     //4个信号灯全灭
     std::string quanmie_command = "\x1bs0";
 
+	//初始化命令
+	std::string init_command = "\x1b\x40";
 
+	//实际读取金额用到的命令
     std::string show_command = "\x1bQA";
 	std::string show_command_2 = "QA";
     std::string type_command = "\x1bs";
 
-    if(new_data == clear_command || new_data == quanmie_command)
+    if(new_data == clear_command || new_data == quanmie_command || new_data == init_command)
     {
         //清屏命令,或者是熄灭灯的命令
         return;