Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xposed-rimet
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
Administrator
xposed-rimet
Commits
762fd143
Commit
762fd143
authored
Mar 02, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定位减少误差
parent
be38d2d4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
.gitignore
.gitignore
+3
-0
build.gradle
app/build.gradle
+2
-2
DingDingHandler.java
.../virjar/xposed/rimet/plugin/dingding/DingDingHandler.java
+2
-2
No files found.
.gitignore
View file @
762fd143
...
...
@@ -12,3 +12,6 @@
/captures
.externalNativeBuild
.idea
*.apk
ratelConfig.properties
\ No newline at end of file
app/build.gradle
View file @
762fd143
...
...
@@ -22,8 +22,8 @@ android {
applicationId
"com.virjar.xposed.rimet"
minSdkVersion
21
targetSdkVersion
27
versionCode
1
versionName
"1.0.
0
"
versionCode
2
versionName
"1.0.
2
"
archivesBaseName
=
"DingDingHelper_${versionName}"
.
replace
(
' '
,
'_'
)
ndk
{
abiFilters
"armeabi-v7a"
//, "arm64-v8a", "x86","arm64-v8a","x86_64"
...
...
app/src/main/java/com/virjar/xposed/rimet/plugin/dingding/DingDingHandler.java
View file @
762fd143
...
...
@@ -360,8 +360,8 @@ public class DingDingHandler extends BaseHandler implements DingDingPlugin.Handl
if
(!
TextUtils
.
isEmpty
(
latitude
)
&&
!
TextUtils
.
isEmpty
(
longitude
))
{
// 重新修改值
location
.
setLongitude
(
Double
.
parseDouble
(
longitude
)
+
ThreadLocalRandom
.
current
().
nextDouble
(
0.002
));
location
.
setLatitude
(
Double
.
parseDouble
(
latitude
)
+
ThreadLocalRandom
.
current
().
nextDouble
(
0.002
));
location
.
setLongitude
(
Double
.
parseDouble
(
longitude
)
+
ThreadLocalRandom
.
current
().
nextDouble
(
0.00
0
2
));
location
.
setLatitude
(
Double
.
parseDouble
(
latitude
)
+
ThreadLocalRandom
.
current
().
nextDouble
(
0.00
0
2
));
}
}
}
...
...
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