feat: fix print

This commit is contained in:
2026-01-27 14:13:06 +08:00
parent 9eb9278676
commit 2ed1f06a9d
5 changed files with 6 additions and 6 deletions

View File

@@ -152,11 +152,11 @@ dependencies {
api 'me.jessyan:autosize:1.2.+' api 'me.jessyan:autosize:1.2.+'
// 佳博打印SDK // 佳博打印SDK
api('com.gainscha:sdk2:2.0.3@aar') { // api('com.gainscha:sdk2:2.0.3@aar') {
exclude group: 'com.jcraft'
}
// api(name: 'sdk2-2.1.6-20250901.051214-1', ext: 'aar') {
// api(name: 'sdk2-2.0.3', ext: 'aar') {
// exclude group: 'com.jcraft' // exclude group: 'com.jcraft'
// } // }
// api(name: 'sdk2-2.1.6-20250901.051214-1', ext: 'aar') {
api(name: 'sdk2-2.0.4', ext: 'aar') {
exclude group: 'com.jcraft'
}
} }

Binary file not shown.

Binary file not shown.

View File

@@ -567,7 +567,7 @@ object PrinterUtils {
fun printTest() { fun printTest() {
getConnectedPrinters().forEach { getConnectedPrinters().forEach {
val bytes = v(Instruction.TSC.toString(), null).bytes val bytes = v(Instruction.TSC).bytes
showLog("打印测试页 - ${it.printerDevice.printerName} \n${bytes.commonToUtf8String()}") showLog("打印测试页 - ${it.printerDevice.printerName} \n${bytes.commonToUtf8String()}")
it.print(bytes, null) it.print(bytes, null)
} }