Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
shop
Commits
d3cd6cda
Commit
d3cd6cda
authored
Nov 13, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
d342de28
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Express.java
src/main/java/com/egolm/shop/util/Express.java
+6
-0
No files found.
src/main/java/com/egolm/shop/util/Express.java
View file @
d3cd6cda
...
...
@@ -7,6 +7,8 @@ import java.util.Locale;
import
java.util.Map
;
import
java.util.TimeZone
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
...
...
@@ -15,11 +17,14 @@ import com.alibaba.fastjson.JSONArray;
import
com.alibaba.fastjson.JSONObject
;
import
com.egolm.common.HttpUtil
;
import
com.egolm.common.StringUtil
;
import
com.egolm.shop.config.ExceptionHandler
;
import
com.egolm.shop.config.XException
;
@Component
public
class
Express
{
private
static
final
Log
logger
=
LogFactory
.
getLog
(
Express
.
class
);
@Value
(
"${opt.express.url}"
)
private
String
url
;
...
...
@@ -52,6 +57,7 @@ public class Express {
queryParams
.
put
(
"number"
,
sExpressNO
.
trim
());
queryParams
.
put
(
"type"
,
sExpressType
==
null
?
""
:
sExpressType
.
trim
());
String
result
=
HttpUtil
.
get
(
url
,
queryParams
,
headers
);
logger
.
debug
(
result
);
JSONObject
jsonObject
=
null
;
try
{
jsonObject
=
JSON
.
parseObject
(
result
);
...
...
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