[2.13.0] fix bug of sn token invoke

This commit is contained in:
zhongchao
2022-11-30 12:59:28 +08:00
parent ada76d3136
commit 621c8f36d2
6 changed files with 20 additions and 14 deletions

View File

@@ -191,7 +191,7 @@ class MoGoAdasMsgConnectStatusListenerImpl : OnAdasConnectStatusListener,
}
override fun tokenGot(sn: String) {
override fun tokenGot(token: String, sn: String) {
syncBasicInfoToAutopilot(sn)
}

View File

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

View File

@@ -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,