|
|
@@ -129,7 +129,7 @@ public class BdLocationHelper {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- private synchronized void setLocation(BDLocation location) throws Exception {
|
|
|
+ private void setLocation(BDLocation location) throws Exception {
|
|
|
if (System.currentTimeMillis() - oldTime < 10000) return;//防止过度
|
|
|
if (locationEntity == null)
|
|
|
locationEntity = new LocationEntity();
|
|
|
@@ -153,7 +153,7 @@ public class BdLocationHelper {
|
|
|
if (StringUtils.isEmpty(location.getAddrStr()))
|
|
|
PreferenceUtils.putString("bdaddress", location.getAddrStr());
|
|
|
} else {
|
|
|
- //统一未定位失败
|
|
|
+ //统一为定位失败
|
|
|
locationEntity.setLocationOk(false);
|
|
|
log("定位失败");
|
|
|
if (location.getLocType() == BDLocation.TypeServerError) {
|