Browse Source

打印优化

lilei 2 years ago
parent
commit
11d0451e35
1 changed files with 1 additions and 1 deletions
  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 += 'FORM \n\r'
 	strCmd += cpcl.addCPCLPrint();
 	strCmd += cpcl.addCPCLPrint();
 	console.log(strCmd)
 	console.log(strCmd)
-	return gbk.strToGBKByte(strCmd);
+	return plus.os.name != 'Android' ? gbk.strToGBKByte(strCmd) : plus.android.invoke(strCmd , 'getBytes', 'gbk');
 }
 }
 
 
 // 40 * 30 尺寸模板
 // 40 * 30 尺寸模板