更新 src/android/cordova/plugin/jcprinter/JcPrinter.java

This commit is contained in:
范大德 2023-10-09 21:29:22 +08:00
parent 0367ba7be0
commit 97e5d3102a

View File

@ -148,6 +148,7 @@ public class JcPrinter extends CordovaPlugin {
int pageCount = data.length(); int pageCount = data.length();
quantity = 1; quantity = 1;
int totalQuantity = pageCount * quantity; int totalQuantity = pageCount * quantity;
//总打印份数表示所有页面的打印份数之和例如如果你有3页需要打印第一页打印3份第二页打印2份第三页打印5份那么count的值应为103+2+5 //总打印份数表示所有页面的打印份数之和例如如果你有3页需要打印第一页打印3份第二页打印2份第三页打印5份那么count的值应为103+2+5
Util.getInstance().setTotalQuantityOfPrints(totalQuantity); Util.getInstance().setTotalQuantityOfPrints(totalQuantity);
printDensity = 8; printDensity = 8;