[BadCase]更新Adas版本号

This commit is contained in:
renwj
2022-01-20 19:24:11 +08:00
parent 088b293f23
commit 4d4a200e38
6 changed files with 42 additions and 44 deletions

View File

@@ -110,7 +110,7 @@ class MoGoAutopilotProvider :
AdasManager.getInstance().rebootIPC()
}
override fun recordCause(key: String?, name: String?, reason: String?) {
AdasManager.getInstance().recordCause(key, name, reason)
override fun recordCause(key: String?, name: String?, id: String?, reason: String?) {
AdasManager.getInstance().recordCause(key, name, id, reason)
}
}

View File

@@ -305,7 +305,6 @@ class MoGoHmiFragment : MvpFragment<MoGoWarningContract.View?, WaringPresenter?>
itx.onDismiss {
val record =
autoPilotBadCaseEntrance?.getTag(R.id.autopilot_badcase_record) as? AutoPilotRecordResult
CallerAutoPilotManager.recordCause(record?.key, record?.fileName, null)
dismissBadCaseFloatView()
}
itx.onSelect {
@@ -334,7 +333,12 @@ class MoGoHmiFragment : MvpFragment<MoGoWarningContract.View?, WaringPresenter?>
Logger.i(TAG, "ok:${body}")
dismissBadCaseFloatView()
dismiss?.invoke()
CallerAutoPilotManager.recordCause(
record?.key,
record?.fileName,
it.id, it.reason)
ToastUtils.showShort("接管反馈成功~")
record?.consumed = true
return@launch
}
Logger.e(TAG, "fail:${body}")
@@ -343,13 +347,6 @@ class MoGoHmiFragment : MvpFragment<MoGoWarningContract.View?, WaringPresenter?>
t.printStackTrace()
ToastUtils.showShort("网络请求失败,请尝试联网~")
Logger.e(TAG, "exception:${t.message}")
} finally {
record?.consumed = true
CallerAutoPilotManager.recordCause(
record?.key,
record?.fileName,
it.id
)
}
}
}