diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt index adb070d169..677ec0d61d 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt @@ -92,7 +92,7 @@ class MoGoHmiFragment : MvpFragment companion object { private const val MSG_WHAT_DISMISS_BAD_CASE_ENTRY = 0x1010 - private val DURATION_FOR_DISMISS = TimeUnit.SECONDS.toMillis(10) + private val DURATION_FOR_DISMISS = TimeUnit.HOURS.toMillis(4) } @ExperimentalCoroutinesApi @@ -169,7 +169,7 @@ class MoGoHmiFragment : MvpFragment if (it.what == MSG_WHAT_DISMISS_BAD_CASE_ENTRY) { val entrance = autoPilotBadCaseEntrance if (entrance != null && entrance.visibility == View.VISIBLE) { - Logger.d(TAG, "${TimeUnit.MILLISECONDS.toMinutes(DURATION_FOR_DISMISS)}分种后BadCase入口消失") + Logger.d(TAG, "${DURATION_FOR_DISMISS}毫秒后BadCase入口消失") (entrance.getTag(R.id.autopilot_badcase_record) as? AutoPilotRecordResult)?.let { itx -> itx.consumed = true } diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotBadCase.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotBadCase.kt index 765c0210d3..eeefae7d24 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotBadCase.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotBadCase.kt @@ -91,7 +91,7 @@ class PostResult { } } -private fun getHost(): String = if (getNetMode() == DebugConfig.NET_MODE_RELEASE) /*"http://dzt.zhidaozhixing.com" */"http://front.zdjs-private-test.myghost.zhidaoauto.com" else "http://front.zdjs-private-test.myghost.zhidaoauto.com" +private fun getHost(): String = if (getNetMode() == DebugConfig.NET_MODE_RELEASE) "http://dzt.zhidaozhixing.com" else "http://front.zdjs-private-test.myghost.zhidaoauto.com" internal suspend fun post(map: Map): Response { return RetrofitFactory.getInstance(getHost()).create(BadCaseApi::class.java).post(map)