Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
miya-hardware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pengguangpu
miya-hardware
Commits
914947c6
Commit
914947c6
authored
Jan 29, 2019
by
pengguangpu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善部分代码注释
parent
721d3247
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
misc.xml
.idea/misc.xml
+1
-1
PrinterManager.java
print/src/main/java/com/miya/print/PrinterManager.java
+1
-1
YingtaiPrinter.java
print/src/main/java/com/miya/print/YingtaiPrinter.java
+1
-1
AccumulateUtils.java
...t/src/main/java/com/miya/print/utils/AccumulateUtils.java
+1
-1
No files found.
.idea/misc.xml
View file @
914947c6
...
...
@@ -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"
>
...
...
print/src/main/java/com/miya/print/PrinterManager.java
View file @
914947c6
...
...
@@ -71,7 +71,7 @@ public class PrinterManager {
/**
* 轮询初始化
*
* @return
状态码
* @return
是否初始化成功
*/
public
boolean
init
(
Context
context
)
{
for
(
Type
type
:
Type
.
values
())
{
...
...
print/src/main/java/com/miya/print/YingtaiPrinter.java
View file @
914947c6
...
...
@@ -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
());
...
...
print/src/main/java/com/miya/print/utils/AccumulateUtils.java
View file @
914947c6
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment