fix bug of location upload data
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package com.mogo.aicloud.services.locationinfo;
|
||||
|
||||
import com.elegant.spi.annotations.Service;
|
||||
import com.zhidao.locupload.location.LocationServiceProvider;
|
||||
import com.mogo.cloud.location.third.core.LocationServiceProvider;
|
||||
|
||||
@Service(value = LocationServiceProvider.class)
|
||||
public class MogoLocationSource extends LocationServiceProvider {
|
||||
|
||||
@@ -62,21 +62,21 @@ SERVICE_CHAIN_VERSION=1.0.22
|
||||
LOGLIB_VERSION=1.0.4
|
||||
######## MogoAiCloudSDK Version ########
|
||||
# 网络请求
|
||||
MOGO_NETWORK_VERSION=1.3.1
|
||||
MOGO_NETWORK_VERSION=1.3.2
|
||||
# 鉴权
|
||||
MOGO_PASSPORT_VERSION=1.3.1
|
||||
MOGO_PASSPORT_VERSION=1.3.2
|
||||
# 常链接
|
||||
MOGO_SOCKET_VERSION=1.3.1
|
||||
MOGO_SOCKET_VERSION=1.3.2
|
||||
# 数据采集
|
||||
MOGO_REALTIME_VERSION=1.3.1
|
||||
MOGO_REALTIME_VERSION=1.3.2
|
||||
# 探路,道路事件发布,获取
|
||||
MOGO_TANLU_VERSION=1.3.1
|
||||
MOGO_TANLU_VERSION=1.3.2
|
||||
# 直播推流
|
||||
MOGO_LIVE_VERSION=1.3.1
|
||||
MOGO_LIVE_VERSION=1.3.2
|
||||
# 直播拉流
|
||||
MOGO_TRAFFICLIVE_VERSION=1.3.1
|
||||
MOGO_TRAFFICLIVE_VERSION=1.3.2
|
||||
# 定位服务
|
||||
MOGO_LOCATION_VERSION=1.3.1
|
||||
MOGO_LOCATION_VERSION=1.3.2
|
||||
######## MogoAiCloudSDK Version ########
|
||||
# 自研地图
|
||||
MAP_SDK_VERSION=V2.0.0.6
|
||||
|
||||
@@ -68,6 +68,7 @@ import com.mogo.service.statusmanager.StatusDescriptor;
|
||||
import com.mogo.utils.NetworkUtils;
|
||||
import com.mogo.eagle.core.utilcode.mogo.thread.WorkThreadHandler;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
import com.zhidao.locupload.service.UploadDataService;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
@@ -380,10 +381,6 @@ public class MogoServices implements IMogoMapListener,
|
||||
|
||||
CarIconDisplayStrategy.getInstance().changeCarIconStatus( mStatusManager.isSeekHelping() );
|
||||
|
||||
if ( DebugConfig.isLaunchLocationService() ) {
|
||||
initLocationServiceProcess( context );
|
||||
}
|
||||
|
||||
AutoPilotRemoteController.getInstance().start();
|
||||
|
||||
Intent intent = new Intent( "com.freedom.ser.ACTION" );
|
||||
@@ -396,19 +393,6 @@ public class MogoServices implements IMogoMapListener,
|
||||
TimeDelayUploadManager.getInstance().init(context);
|
||||
}
|
||||
|
||||
public void initLocationServiceProcess( Context context ) {
|
||||
try {
|
||||
Intent intent = new Intent();
|
||||
intent.setAction( "com.zhidao.locationinfo.service.uploaddataservice" );
|
||||
ComponentName cn = new ComponentName( "com.zhidao.locationinfo", "com.zhidao.locationinfo.service.UploadDataService" );
|
||||
intent.setComponent( cn );
|
||||
context.startService( intent );
|
||||
} catch ( Exception e ) {
|
||||
Logger.e( TAG, e, "start location service error." );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void initWorkThread() {
|
||||
mThreadHandler = new RefreshWorkThreadHandler( WorkThreadHandler.getInstance().getLooper() ) {
|
||||
@Override
|
||||
|
||||
@@ -146,7 +146,6 @@ abstract class StatusChangedAdapter implements IMogoStatusChangedListener {
|
||||
mIsFirstAccOn = false;
|
||||
return;
|
||||
}
|
||||
MogoServices.getInstance().initLocationServiceProcess(AbsMogoApplication.getApp());
|
||||
MogoApisHandler.getInstance().getApis().getAdasControllerApi().showADAS();
|
||||
MarkerServiceHandler.getApis().getMapServiceApi().getSingletonLocationClient(AbsMogoApplication.getApp()).start();
|
||||
MarkerServiceHandler.getApis().getMapServiceApi().getMarkerManager(AbsMogoApplication.getApp()).removeMarkers();
|
||||
|
||||
Reference in New Issue
Block a user