File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ node_modules /
2+ build /
3+ .vscode
4+ .gitignore
5+ .npmignore
6+ .test.js
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const escpos =require('node-escpos-addon');
77const usblist = escpos .GetUsbDeviceList ();
88const printer = usblist .find (item => item .service === ' usbprint' || item .deviceName === ' USB 打印支持' );
99const content = iconv .encode (" 你好啊\n halo cpp!\\ n\n\n\n\n n\n\n\n\n " , ' GB18030' );
10- escpos .PrintRaw (printer .path , content);
10+ const { success , err } = escpos .PrintRaw (printer .path , content);
1111```
1212
1313
@@ -18,5 +18,5 @@ const escpos =require('node-escpos-addon');
1818const lptList = escpos .GetLptDeviceList ();
1919const printer = lptList [0 ];
2020const content = iconv .encode (" 你好啊\n halo cpp!\\ n\n\n\n\n n\n\n\n\n " , ' GB18030' );
21- escpos .PrintRaw (printer .path , content );
21+ const {success, err} = escpos .PrintRaw (printer .path , content );
2222```
You can’t perform that action at this time.
0 commit comments