Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-enterprise-base
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-enterprise-base
Commits
d0a11c02
Commit
d0a11c02
authored
Aug 12, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码规范修改
parent
f1139dbe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
DataDownloadUtils.java
...c/main/java/com/gic/download/utils/DataDownloadUtils.java
+2
-2
QrcodeDownload.java
.../src/main/java/com/gic/download/utils/QrcodeDownload.java
+3
-5
No files found.
gic-enterprise-download/src/main/java/com/gic/download/utils/DataDownloadUtils.java
View file @
d0a11c02
...
@@ -296,7 +296,7 @@ public class DataDownloadUtils {
...
@@ -296,7 +296,7 @@ public class DataDownloadUtils {
.
getMethod
(
"get"
+
fieldName
.
substring
(
0
,
1
).
toUpperCase
()
+
fieldName
.
substring
(
1
),
null
);
.
getMethod
(
"get"
+
fieldName
.
substring
(
0
,
1
).
toUpperCase
()
+
fieldName
.
substring
(
1
),
null
);
return
method
.
invoke
(
obj
,
null
);
return
method
.
invoke
(
obj
,
null
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
LOGGER
.
warn
(
e
);
}
}
return
result
;
return
result
;
}
}
...
@@ -309,7 +309,7 @@ public class DataDownloadUtils {
...
@@ -309,7 +309,7 @@ public class DataDownloadUtils {
field
.
setAccessible
(
true
);
field
.
setAccessible
(
true
);
return
field
;
return
field
;
}
catch
(
NoSuchFieldException
e
)
{
}
catch
(
NoSuchFieldException
e
)
{
e
.
printStackTrace
(
);
LOGGER
.
warn
(
e
);
}
}
}
}
return
null
;
return
null
;
...
...
gic-enterprise-download/src/main/java/com/gic/download/utils/QrcodeDownload.java
View file @
d0a11c02
...
@@ -229,11 +229,11 @@ public abstract class QrcodeDownload {
...
@@ -229,11 +229,11 @@ public abstract class QrcodeDownload {
InputStream
in
=
conn
.
getInputStream
();
InputStream
in
=
conn
.
getInputStream
();
return
IOUtils
.
toByteArray
(
in
);
return
IOUtils
.
toByteArray
(
in
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
printStackTrace
(
);
log
.
warn
(
e
);
return
null
;
return
null
;
}
}
}
catch
(
MalformedURLException
e
)
{
}
catch
(
MalformedURLException
e
)
{
e
.
printStackTrace
(
);
log
.
warn
(
e
);
return
null
;
return
null
;
}
}
}
}
...
@@ -307,7 +307,6 @@ public abstract class QrcodeDownload {
...
@@ -307,7 +307,6 @@ public abstract class QrcodeDownload {
logo
.
flush
();
logo
.
flush
();
image
.
flush
();
image
.
flush
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
log
.
error
(
e
.
getMessage
());
log
.
error
(
e
.
getMessage
());
}
}
}
}
...
@@ -319,7 +318,6 @@ public abstract class QrcodeDownload {
...
@@ -319,7 +318,6 @@ public abstract class QrcodeDownload {
ImageIO
.
write
(
image
,
format
,
baos
);
ImageIO
.
write
(
image
,
format
,
baos
);
return
baos
.
toByteArray
();
return
baos
.
toByteArray
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
log
.
error
(
e
.
getMessage
());
log
.
error
(
e
.
getMessage
());
}
}
return
null
;
return
null
;
...
@@ -360,7 +358,7 @@ public abstract class QrcodeDownload {
...
@@ -360,7 +358,7 @@ public abstract class QrcodeDownload {
}
}
}
}
}
catch
(
WriterException
e
)
{
}
catch
(
WriterException
e
)
{
e
.
printStackTrace
(
);
log
.
warn
(
e
);
}
}
return
image
;
return
image
;
}
}
...
...
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