|
|
|
@ -281,7 +281,16 @@ |
|
|
|
console.log('JPush print skipped, missing order_id:', JSON.stringify(printData)); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (uni.getStorageSync('printingMethod') == 'cloud') { |
|
|
|
const printingMethod = uni.getStorageSync('printingMethod') || 'bluetooth'; |
|
|
|
const bluetoothDeviceId = uni.getStorageSync('bluetoothDeviceId') || ''; |
|
|
|
console.log('JPush print config:', JSON.stringify({ |
|
|
|
orderId: printData.order_id, |
|
|
|
printingMethod, |
|
|
|
bluetoothDeviceId, |
|
|
|
isPrinting: this.globalData.isPrinting, |
|
|
|
queueLength: this.globalData.printData.length |
|
|
|
})); |
|
|
|
if (printingMethod == 'cloud') { |
|
|
|
console.log('JPush print skipped, cloud print mode:', printData.order_id); |
|
|
|
return; |
|
|
|
} |
|
|
|
|