version:2.8
fix:修复无网络连接时请求接口报错 update:优化网络请求
This commit is contained in:
@@ -106,7 +106,7 @@ public class APKinstallReceiver extends BroadcastReceiver {
|
||||
NetInterfaceManager.getInstance().getAppInside();
|
||||
}
|
||||
NetInterfaceManager.getInstance().SendAppInstallInfo();
|
||||
MainService.getPresenter().getAppAndWhite();
|
||||
NetInterfaceManager.getInstance().getAppAndWhite();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -21,7 +21,6 @@ import com.fuying.sn.service.StepService;
|
||||
public class BootReceiver extends BroadcastReceiver {
|
||||
private static String TAG = BootReceiver.class.getSimpleName();
|
||||
public static final String BOOT_COMPLETED = "zuoyeos.action.BOOT_COMPLETED";
|
||||
public static final String SOS = "zuoyeos.action.SOS";
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
@@ -47,17 +46,6 @@ public class BootReceiver extends BroadcastReceiver {
|
||||
context.startService(new Intent(context, DownloadService.class));
|
||||
context.startService(new Intent(context, ManagerService.class));
|
||||
context.startService(new Intent(context, ControlPanelService.class));
|
||||
} else if (SOS.equals(action)) {
|
||||
LocationClient locationClient = AmapManager.getInstance().getLocationClient();
|
||||
locationClient.stop();
|
||||
locationClient.start();
|
||||
locationClient.registerLocationListener(new BDAbstractLocationListener() {
|
||||
@Override
|
||||
public void onReceiveLocation(BDLocation bdLocation) {
|
||||
Log.e(TAG, "onReceiveLocation: ");
|
||||
NetInterfaceManager.getInstance().updateAdminInfo();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user