Commit 669577ee by 刘鹏

修复跳过逻辑

parent 3ad3f065
......@@ -10,7 +10,7 @@ ext {
"m-fm" : "0.0.30.03",
"m-user" : "0.0.61.37",
"m-home" : "0.0.22.65",
"m-im" : "0.0.19.26",
"m-im" : "0.0.19.27",
"m-dynamic" : "0.0.7.22",
"m-article" : "0.0.0.10",
......
......@@ -102,7 +102,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
override fun initDataAndEvent() {
if (isJumpToIm()) {
//如果今天过题,跳转到聊天界面
//如果今天过题,跳转到聊天界面
skipToIm()
return
}
......@@ -666,7 +666,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
val skipTime = SharedPreferencesEditor.getString("skip_time_")
if (skipTime == null || skipTime.isEmpty()) {
return false
return true
}
val timeDifference = (time - skipTime.toLong()) / 1000
val second = 1000
......@@ -674,7 +674,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
val hour = minute * 60
val day = hour * 24
return timeDifference > skip_time
return timeDifference < skip_time
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment