From 56ff27cad4f878b9ef35c21b2136c01fb7794e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=BD=87=E9=98=B3?= Date: Wed, 12 Jun 2024 15:39:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A5=A8=E6=8D=AE=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CPF_Cef/Devices/PrintPJ.cs | 2 +- CPF_Cef/FrmMain.cs | 1 + CPF_Cef/Parame.cs | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CPF_Cef/Devices/PrintPJ.cs b/CPF_Cef/Devices/PrintPJ.cs index c3a617c..8b89154 100644 --- a/CPF_Cef/Devices/PrintPJ.cs +++ b/CPF_Cef/Devices/PrintPJ.cs @@ -110,7 +110,7 @@ namespace AksWebBrowser.Devices LibPrint.SetSizetext(0, 0); LibPrint.SetAlignment(2); LibPrint.PrintString(Encoding.GetEncoding("gb2312").GetBytes(DateTime.Now.ToLocalTime().ToString()), 1); - LibPrint.PrintFeedDot(140); + LibPrint.PrintFeedDot(155); LibPrint.PrintCutpaper(0); } catch (Exception ex) diff --git a/CPF_Cef/FrmMain.cs b/CPF_Cef/FrmMain.cs index 931e1cb..0e46c5f 100644 --- a/CPF_Cef/FrmMain.cs +++ b/CPF_Cef/FrmMain.cs @@ -88,6 +88,7 @@ namespace AKS.EnterpriseLibrary.WebBrowser Parame.webBrowser.Width = w; Parame.webBrowser.Height = h; Parame.webBrowser.Url = "http://127.0.0.1:8096/#/main-out"; + //Parame.webBrowser.Url = "http://192.168.0.34:8078/#/main-out"; //Parame.webBrowser.Url = Application.StartupPath + @"\html\index.html"; //开发者工具暂时只能支持Windows //webBrowser.ShowDev(); diff --git a/CPF_Cef/Parame.cs b/CPF_Cef/Parame.cs index ec06f35..2249759 100644 --- a/CPF_Cef/Parame.cs +++ b/CPF_Cef/Parame.cs @@ -19,7 +19,7 @@ namespace AksWebBrowser public static Window frm { get; set; } public static List FuncObject { get; set; } //接口地址 - public static string apiUrl = "http://127.0.0.1:8098"; + public static string apiUrl = "http://127.0.0.1:8098";//"http://192.168.0.34:92"; //授权key public static string key = "1"; //硬件Ip @@ -41,7 +41,7 @@ namespace AksWebBrowser //打印名字 public static string PrinterName = "Lexmark-MS430-Series"; //是否启用双目 - public static bool isSM = true; + public static bool isSM = false; //是否开启高拍仪 public static bool isGPY = false; //双目摄像头