Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
王衍超
cloud-fb
Commits
2fd6bb61
Commit
2fd6bb61
authored
May 18, 2021
by
高晓磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GPS去掉map_type
parent
eb5b591a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
GpsOOUtil.java
.../src/main/java/com/beecode/inz/common/util/GpsOOUtil.java
+8
-8
No files found.
backend/inz.common/src/main/java/com/beecode/inz/common/util/GpsOOUtil.java
View file @
2fd6bb61
...
...
@@ -119,9 +119,6 @@ public class GpsOOUtil {
if
(
StringUtils
.
isEmpty
(
imeis
)){
return
null
;
}
if
(
StringUtils
.
isEmpty
(
mapType
)){
mapType
=
"GOOGLE"
;
}
String
commonParam
=
getCommonParam
(
account
,
password
);
if
(
commonParam
==
null
){
...
...
@@ -139,7 +136,10 @@ public class GpsOOUtil {
}
}
String
sendParam
=
commonParam
+
"&imeis="
+
String
.
join
(
","
,
imeisInfoKey
)+
"&map_type="
+
mapType
;
String
sendParam
=
commonParam
+
"&imeis="
+
String
.
join
(
","
,
imeisInfoKey
);
if
(
StringUtils
.
isNotEmpty
(
mapType
)){
sendParam
+=
"&map_type="
+
mapType
;
}
String
sendPost
=
HttpSendUtil
.
sendPost
(
TRACKING_URL
,
sendParam
,
StandardCharsets
.
UTF_8
.
name
());
JSONObject
postStr
=
new
JSONObject
(
sendPost
);
int
ret
=
postStr
.
getInt
(
"ret"
);
...
...
@@ -181,9 +181,6 @@ public class GpsOOUtil {
if
(
StringUtils
.
isEmpty
(
imei
)){
return
null
;
}
if
(
StringUtils
.
isEmpty
(
mapType
)){
mapType
=
"GOOGLE"
;
}
String
commonParam
=
getCommonParam
(
account
,
password
);
if
(
commonParam
==
null
){
...
...
@@ -193,7 +190,10 @@ public class GpsOOUtil {
datas
=
new
ArrayList
<>();
}
String
sendParam
=
commonParam
+
"&imei="
+
imei
+
"&map_type="
+
mapType
+
"&begin_time="
+
beginTime
+
"&end_time="
+
endTime
;
String
sendParam
=
commonParam
+
"&imei="
+
imei
+
"&begin_time="
+
beginTime
+
"&end_time="
+
endTime
;
if
(
StringUtils
.
isNotEmpty
(
mapType
)){
sendParam
+=
"&map_type="
+
mapType
;
}
String
sendPost
=
HttpSendUtil
.
sendPost
(
HISTORY_URL
,
sendParam
,
StandardCharsets
.
UTF_8
.
name
());
JSONObject
postStr
=
new
JSONObject
(
sendPost
);
int
ret
=
postStr
.
getInt
(
"ret"
);
...
...
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