Browse Source

打印优化

lilei 2 năm trước cách đây
mục cha
commit
11d0451e35
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      libs/printTools.js

+ 1 - 1
libs/printTools.js

@@ -178,7 +178,7 @@ export const printCpclTempl = function(cpcl,data){
 	strCmd += 'FORM \n\r'
 	strCmd += cpcl.addCPCLPrint();
 	console.log(strCmd)
-	return gbk.strToGBKByte(strCmd);
+	return plus.os.name != 'Android' ? gbk.strToGBKByte(strCmd) : plus.android.invoke(strCmd , 'getBytes', 'gbk');
 }
 
 // 40 * 30 尺寸模板