1
wankeda
2026-02-26 36d872855097bc1d76b96b850a72d7749500e272
WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs
@@ -3589,12 +3589,11 @@
        {
            Console.WriteLine($"📄 正在打印到 {printerName}: {Path.GetFileName(filePath)}");
            string command = $"lpr -P {printerName} \"{filePath}\"";
            // 使用 lp 命令,添加 -o raw 选项
            string command = $"lp -d {printerName} -o raw \"{filePath}\"";
            ExecuteShellCommand(command);
        }
        /// <summary>
        /// 执行 Shell 命令
        /// </summary>