lilei %!s(int64=2) %!d(string=hai) anos
pai
achega
11d0451e35
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 尺寸模板