version:2.8

fix:修复无网络连接时请求接口报错
update:优化网络请求
This commit is contained in:
2023-01-10 18:09:07 +08:00
parent cc5951ad0f
commit 74a0f631e2
31 changed files with 597 additions and 822 deletions

View File

@@ -106,7 +106,7 @@ public class APKinstallReceiver extends BroadcastReceiver {
NetInterfaceManager.getInstance().getAppInside();
}
NetInterfaceManager.getInstance().SendAppInstallInfo();
MainService.getPresenter().getAppAndWhite();
NetInterfaceManager.getInstance().getAppAndWhite();
}
@Override

View File

@@ -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();
}
});
}
}
}