Commit dcc2409d by 霍志良

feat:埋点

parent 4fd92763
......@@ -9,8 +9,8 @@ ext {
"m-consultant" : "0.0.60.01",
"m-fm" : "0.0.30.04",
"m-user" : "0.0.61.81",
"m-home" : "0.0.22.81",
"m-im" : "0.0.20.04",
"m-home" : "0.0.22.82",
"m-im" : "0.0.20.05",
"m-dynamic" : "0.0.7.34",
"m-article" : "0.0.0.10",
......@@ -92,8 +92,8 @@ ext {
"m-consultant" : "0.0.60.01",
"m-fm" : "0.0.30.04",
"m-user" : "0.0.61.81",
"m-home" : "0.0.22.81",
"m-im" : "0.0.20.04",
"m-home" : "0.0.22.82",
"m-im" : "0.0.20.05",
"m-dynamic" : "0.0.7.34",
"m-article" : "0.0.0.8",
......
......@@ -498,8 +498,12 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
showConsultAssistantDialog()
} else {
hideConsultAssistantDialog()
endTime=System.currentTimeMillis()
ActionCountUtils.count(HomeBIConstants.YDL_HOME_DWELL_TIME,(endTime-startTime).toString())
if (startTime!=0L){
endTime=System.currentTimeMillis()
ActionCountUtils.count(HomeBIConstants.YDL_HOME_DWELL_TIME,(endTime-startTime).toString())
startTime=0L
}
}
if (isVisibleToUser && isResumed) {
onResume()
......@@ -532,6 +536,15 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
}
}
override fun onPause() {
super.onPause()
if (startTime!=0L){
endTime=System.currentTimeMillis()
ActionCountUtils.count(HomeBIConstants.YDL_HOME_DWELL_TIME,(endTime-startTime).toString())
startTime=0L
}
}
/**
* 咨询楼层tablayout
*/
......
......@@ -126,6 +126,7 @@ class NewMultiMessageFragment : BaseFragment() {
"ydl_user_message_page|ydl_user_message_page_stay_visit",
String.valueOf(endTime - startTime)
)
startTime=0L
}
}
}
......
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