Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0964a7c2
authored
Jul 25, 2016
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
coding
parent
7c5fa5ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobNetCommUtil.java
xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobNetCommUtil.java
View file @
0964a7c2
...
@@ -54,7 +54,8 @@ public class XxlJobNetCommUtil {
...
@@ -54,7 +54,8 @@ public class XxlJobNetCommUtil {
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
parseHexJson2Obj
(
"7B22737461747573223A2253554343455353222C226D7367223A2254696D657374616D702054696D656F75742E227D"
,
ResponseModel
.
class
));
System
.
out
.
println
(
parseHexJson2Obj
(
"7B2274696D657374616D70223A313436393432323136303032362C22616374696F6E223A2252554E222C226A6F6247726F7570223A2264656661756C7473222C226A6F624E616D65223A22323031363037323530393030353730363632222C226578656375746F7248616E646C6572223A2264656D6F4A6F6248616E646C6572222C226578656375746F72506172616D73223A2231303030303030222C22676C7565537769746368223A66616C73652C226C6F6741646472657373223A2231302E35372E3132332E32383A38383838222C226C6F674964223A3138382C226C6F674461746554696D223A302C22737461747573223A2253554343455353222C226D7367223A6E756C6C7D"
,
RequestModel
.
class
));
System
.
out
.
println
(
parseHexJson2Obj
(
"7B22737461747573223A2253554343455353222C226D7367223A6E756C6C7D"
,
ResponseModel
.
class
));
}
}
/**
/**
...
@@ -89,7 +90,8 @@ public class XxlJobNetCommUtil {
...
@@ -89,7 +90,8 @@ public class XxlJobNetCommUtil {
HttpEntity
entity
=
response
.
getEntity
();
HttpEntity
entity
=
response
.
getEntity
();
if
(
response
.
getStatusLine
().
getStatusCode
()
==
200
&&
null
!=
entity
)
{
if
(
response
.
getStatusLine
().
getStatusCode
()
==
200
&&
null
!=
entity
)
{
String
responseHex
=
EntityUtils
.
toString
(
entity
,
"UTF-8"
);
String
responseHex
=
EntityUtils
.
toString
(
entity
,
"UTF-8"
);
EntityUtils
.
consume
(
entity
);
logger
.
debug
(
"xxl-job, net comm success, requestHex:{}, responseHex:{}"
,
requestHex
,
responseHex
);
EntityUtils
.
consume
(
entity
);
// i do not know why
// i do not know why
responseHex
=
responseHex
.
replace
(
"\n"
,
""
);
responseHex
=
responseHex
.
replace
(
"\n"
,
""
);
...
...
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