[2.13.0] fix bug of sn token invoke
This commit is contained in:
@@ -191,7 +191,7 @@ class MoGoAdasMsgConnectStatusListenerImpl : OnAdasConnectStatusListener,
|
||||
|
||||
}
|
||||
|
||||
override fun tokenGot(sn: String) {
|
||||
override fun tokenGot(token: String, sn: String) {
|
||||
syncBasicInfoToAutopilot(sn)
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ class TraceManager : IMoGoCloudListener {
|
||||
|
||||
@Synchronized
|
||||
fun init(context: Context) {
|
||||
if(init){
|
||||
if (init) {
|
||||
return
|
||||
}
|
||||
// 初始化Trace抓取服务
|
||||
@@ -101,7 +101,7 @@ class TraceManager : IMoGoCloudListener {
|
||||
init = true
|
||||
}
|
||||
|
||||
override fun tokenGot(sn: String) {
|
||||
override fun tokenGot(token: String, sn: String) {
|
||||
FileWriteManager.getInstance().updateDeviceId(sn)
|
||||
}
|
||||
|
||||
|
||||
@@ -950,7 +950,7 @@ class MoGoHmiFragment : MvpFragment<MoGoHmiContract.View?, HmiPresenter?>(),
|
||||
SharedPrefsMgr.getInstance(it)
|
||||
.putLong("roadwork", System.currentTimeMillis() / 1000)
|
||||
}
|
||||
CallerAutoPilotManager.sendTripInfo(5, "", "", "", false);
|
||||
CallerAutoPilotManager.sendTripInfo(5, "", "", "", false)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1564,7 +1564,7 @@ class MoGoHmiFragment : MvpFragment<MoGoHmiContract.View?, HmiPresenter?>(),
|
||||
EXIT_AUTOPILOT_FOR_LOCATION,
|
||||
EXIT_AUTOPILOT_FOR_CHASSIS,
|
||||
EXIT_AUTOPILOT_FOR_DISTANCE -> {
|
||||
showWarningV2X(
|
||||
warningV2X(
|
||||
EventTypeEnum.TAKE_OVER_EVENT.poiType,
|
||||
EventTypeEnum.TAKE_OVER_EVENT.content,
|
||||
EventTypeEnum.TAKE_OVER_EVENT.tts,
|
||||
|
||||
@@ -2,5 +2,5 @@ package com.mogo.eagle.core.function.api.cloud
|
||||
|
||||
interface IMoGoCloudListener {
|
||||
|
||||
fun tokenGot(sn:String)
|
||||
fun tokenGot(token: String, sn: String)
|
||||
}
|
||||
@@ -53,10 +53,10 @@ object CallerCloudListenerManager {
|
||||
/**
|
||||
* 分发获取到的设备sn
|
||||
*/
|
||||
fun invokeCloudTokenGot(sn: String) {
|
||||
fun invokeCloudTokenGot(token: String, sn: String) {
|
||||
M_CLOUD_LISTENER.forEach {
|
||||
val listener = it.value
|
||||
listener.tokenGot(sn)
|
||||
listener.tokenGot(token, sn)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user