Explorar el Código

修复部分机器下不打印的问题

zhangyang hace 6 años
padre
commit
9ae7938c6b

BIN
bin/Win32/Debug/lewaimai_pos_windows.zip


BIN
bin/Win32/Release/lewaimai_pos_windows/lewaimai_pos_windows.exe


BIN
bin/Win32/Release/setup/lewaimai_pos_windows_setup_1.0.0.8.exe


+ 1 - 1
bin/Win32/Release/setup/乐外卖接单软件安装脚本.nsi

@@ -2,7 +2,7 @@
 
 ; HM NIS Edit Wizard helper defines
 !define PRODUCT_NAME "乐外卖接单软件"
-!define PRODUCT_VERSION "1.0.0.8"
+!define PRODUCT_VERSION "1.0.0.9"
 !define PRODUCT_PUBLISHER "深圳市迅享科技有限公司"
 !define PRODUCT_WEB_SITE "https://www.lewaimai.com"
 !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\${PRODUCT_NAME}.exe"

BIN
lewaimai_pos_windows/resource/lewaimai_pos_windows.aps


BIN
lewaimai_pos_windows/resource/lewaimai_pos_windows.rc


+ 4 - 4
lewaimai_pos_windows/tool/CPosPrinter.cpp

@@ -977,9 +977,9 @@ int CPosPrinter::WriteBuf(const char* buf, int len)
             if((*it).type == 3)
             {
                 //串口,同步写数据
-                LOG_INFO("before writefile handle:" << hPort);
+                //LOG_INFO("before writefile handle:" << hPort);
                 WriteFile(hPort, buf, len, &dwWrite, NULL);
-                LOG_INFO("after writefile handle:" << hPort);
+                //LOG_INFO("after writefile handle:" << hPort);
             }
             else
             {
@@ -996,9 +996,9 @@ int CPosPrinter::WriteBuf(const char* buf, int len)
                 {
                     if(GetLastError() == ERROR_IO_PENDING)
                     {
-                        LOG_INFO("Request queued, waiting... handle:" << hPort);
+                        //LOG_INFO("Request queued, waiting... handle:" << hPort);
                         WaitForSingleObject(hPort, 5000);
-                        LOG_INFO("Request completed, handle:" << hPort);
+                        //LOG_INFO("Request completed, handle:" << hPort);
                         DWORD numread;
                         rc = GetOverlappedResult(
                                  hPort,