Commit 6f587c0c by cuiliang.shi

误删代码 上传标记

1 parent dd13318e
...@@ -6,8 +6,8 @@ android { ...@@ -6,8 +6,8 @@ android {
applicationId "com.agenew.location_server.application" applicationId "com.agenew.location_server.application"
minSdkVersion 23 minSdkVersion 23
targetSdkVersion 28 targetSdkVersion 28
versionCode 8 versionCode 9
versionName "1.8" versionName "1.9"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
} }
buildTypes { buildTypes {
......
...@@ -106,6 +106,7 @@ public class BirdService extends Service { ...@@ -106,6 +106,7 @@ public class BirdService extends Service {
if (netWorkChangReceiver !=null){ if (netWorkChangReceiver !=null){
unregisterReceiver(netWorkChangReceiver); unregisterReceiver(netWorkChangReceiver);
} }
mHasSendTheLocationInfo = false;
mWifiAvailableErrorCount = 0; mWifiAvailableErrorCount = 0;
mNetworkAvailableErrorCount = 0; mNetworkAvailableErrorCount = 0;
mLocationCount = 0; mLocationCount = 0;
...@@ -388,6 +389,7 @@ public class BirdService extends Service { ...@@ -388,6 +389,7 @@ public class BirdService extends Service {
}else{ }else{
Log.d(TAG, "upload failed"); Log.d(TAG, "upload failed");
} }
mHasSendTheLocationInfo = true;
} else if (responseCode != 200) { } else if (responseCode != 200) {
Log.d(TAG, "request failed"); Log.d(TAG, "request failed");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!