Commit 762fd143 authored by Administrator's avatar Administrator

定位减少误差

parent be38d2d4
...@@ -12,3 +12,6 @@ ...@@ -12,3 +12,6 @@
/captures /captures
.externalNativeBuild .externalNativeBuild
.idea .idea
*.apk
ratelConfig.properties
\ No newline at end of file
...@@ -22,8 +22,8 @@ android { ...@@ -22,8 +22,8 @@ android {
applicationId "com.virjar.xposed.rimet" applicationId "com.virjar.xposed.rimet"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 27 targetSdkVersion 27
versionCode 1 versionCode 2
versionName "1.0.0" versionName "1.0.2"
archivesBaseName = "DingDingHelper_${versionName}".replace(' ', '_') archivesBaseName = "DingDingHelper_${versionName}".replace(' ', '_')
ndk { ndk {
abiFilters "armeabi-v7a"//, "arm64-v8a", "x86","arm64-v8a","x86_64" abiFilters "armeabi-v7a"//, "arm64-v8a", "x86","arm64-v8a","x86_64"
......
...@@ -360,8 +360,8 @@ public class DingDingHandler extends BaseHandler implements DingDingPlugin.Handl ...@@ -360,8 +360,8 @@ public class DingDingHandler extends BaseHandler implements DingDingPlugin.Handl
if (!TextUtils.isEmpty(latitude) && !TextUtils.isEmpty(longitude)) { if (!TextUtils.isEmpty(latitude) && !TextUtils.isEmpty(longitude)) {
// 重新修改值 // 重新修改值
location.setLongitude(Double.parseDouble(longitude) + ThreadLocalRandom.current().nextDouble(0.002)); location.setLongitude(Double.parseDouble(longitude) + ThreadLocalRandom.current().nextDouble(0.0002));
location.setLatitude(Double.parseDouble(latitude) + ThreadLocalRandom.current().nextDouble(0.002)); location.setLatitude(Double.parseDouble(latitude) + ThreadLocalRandom.current().nextDouble(0.0002));
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment