Commit 914947c6 authored by pengguangpu's avatar pengguangpu

完善部分代码注释

parent 721d3247
......@@ -35,7 +35,7 @@
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
......
......@@ -71,7 +71,7 @@ public class PrinterManager {
/**
* 轮询初始化
*
* @return 状态码
* @return 是否初始化成功
*/
public boolean init(Context context) {
for (Type type : Type.values()) {
......
......@@ -122,7 +122,7 @@ public class YingtaiPrinter extends BasePrinter {
e.printStackTrace();
throw new PrinterException(PrinterStatusEnum.CODE_FAILED.getStatus(), e.getMessage());
}
//桑达打印图片时,本身就会强制走纸一行,这里不再判断是否再走纸
//英泰打印图片时,本身就会强制走纸一行,这里不再判断是否再走纸
return ret;
} else {
throw new PrinterException(PrinterStatusEnum.CODE_FAILED.getStatus(), PrinterStatusEnum.CODE_FAILED.getDesc());
......
......@@ -100,7 +100,7 @@ public class AccumulateUtils {
*/
private static int getBytesLength(String str) {
if (str != null) {
return str.getBytes(Charset.forName("utf-8")).length;
return str.getBytes(Charset.forName("GB2312")).length;
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment