Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
4fd92763
Commit
4fd92763
authored
Nov 05, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:埋点
parent
2c6810f1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
17 deletions
+33
-17
config.gradle
config.gradle
+8
-8
ExpertSearchFragment.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
+2
-1
ConsultAssistantDialogUtils.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
+0
-1
HomeBIConstants.kt
m-home/src/main/java/com/yidianling/home/constants/HomeBIConstants.kt
+1
-1
YdlHomeFragment.kt
m-home/src/ydl/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
+2
-2
NewMultiMessageFragment.kt
m-im/src/main/java/com/yidianling/im/ui/page/NewMultiMessageFragment.kt
+10
-4
MineFragment.java
m-user/src/main/java/com/yidianling/user/mine/MineFragment.java
+10
-0
No files found.
config.gradle
View file @
4fd92763
...
...
@@ -6,11 +6,11 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.49.13"
,
"m-consultant"
:
"0.0.60.0
0
"
,
"m-consultant"
:
"0.0.60.0
1
"
,
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.
79
"
,
"m-home"
:
"0.0.22.8
0
"
,
"m-im"
:
"0.0.20.0
0
"
,
"m-user"
:
"0.0.61.
81
"
,
"m-home"
:
"0.0.22.8
1
"
,
"m-im"
:
"0.0.20.0
4
"
,
"m-dynamic"
:
"0.0.7.34"
,
"m-article"
:
"0.0.0.10"
,
...
...
@@ -89,11 +89,11 @@ ext {
//第三步 若干
"m-confide"
:
"0.0.49.13"
,
"m-consultant"
:
"0.0.60.0
0
"
,
"m-consultant"
:
"0.0.60.0
1
"
,
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.
79
"
,
"m-home"
:
"0.0.22.8
0
"
,
"m-im"
:
"0.0.20.0
0
"
,
"m-user"
:
"0.0.61.
81
"
,
"m-home"
:
"0.0.22.8
1
"
,
"m-im"
:
"0.0.20.0
4
"
,
"m-dynamic"
:
"0.0.7.34"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
View file @
4fd92763
...
...
@@ -329,7 +329,6 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
super
.
setUserVisibleHint
(
isVisibleToUser
)
if
(
isVisibleToUser
&&
isResumed
)
{
startTime
=
System
.
currentTimeMillis
()
ActionCountUtils
.
count
(
ConsultBIConstants
.
ConsultEvent
.
APP_CONSULT_LIST_PAGE_VISIT
)
showConsultAssistantDialog
()
}
else
{
hideConsultAssistantDialog
()
...
...
@@ -1534,6 +1533,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
override
fun
onResume
()
{
super
.
onResume
()
refresh
(
false
)
ActionCountUtils
.
count
(
ConsultBIConstants
.
ConsultEvent
.
APP_CONSULT_LIST_PAGE_VISIT
)
ActionCountUtils
.
count
(
"daoyi_advertisement_page|daoyi_advertisement_visit"
,
"6"
)
}
override
fun
onDestroy
()
{
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
View file @
4fd92763
...
...
@@ -344,7 +344,6 @@ class ConsultAssistantDialogUtils private constructor() {
// 请求接口获取咨询助理的uid
getConsultAssistantUid
(
location
,
activity
,
null
)
}
ActionCountUtils
.
count
(
ConsultBIConstants
.
POSITION_DAOYI_ADVERTISEMENT_VISIT
,
location
.
toString
())
ActionCountUtils
.
count
(
ConsultBIConstants
.
POSITION_DAOYI_ADVERTISEMENT_CLICK
,
location
.
toString
()
...
...
m-home/src/main/java/com/yidianling/home/constants/HomeBIConstants.kt
View file @
4fd92763
...
...
@@ -38,7 +38,7 @@ class HomeBIConstants {
const
val
YDL_PRIVATE_CHAT_CLICK
:
String
=
YDL_USER_MAIN_PAGE
+
"private_chat_click"
// 首页咨询分类点击私聊按钮
const
val
YDL_HOME_DWELL_TIME
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_main_page_stay_visit"
// 首页停留时长
const
val
YDL_HOME_ZHUMIANMINGXIANG
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_sleep_aid_more_click"
// 首页助眠冥想
const
val
YDL_HOME_ZHUMIANICON
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_
listen
_type_click"
// 首页_助眠_icon
const
val
YDL_HOME_ZHUMIANICON
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_
sleep_aid
_type_click"
// 首页_助眠_icon
}
...
...
m-home/src/ydl/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
View file @
4fd92763
...
...
@@ -495,7 +495,6 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
super
.
setUserVisibleHint
(
isVisibleToUser
)
if
(
isVisibleToUser
&&
isResumed
)
{
startTime
=
System
.
currentTimeMillis
()
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_USER_MAIN_PAGE_VISIT
)
showConsultAssistantDialog
()
}
else
{
hideConsultAssistantDialog
()
...
...
@@ -527,7 +526,8 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
mPresenter
?.
getConsultData
(
consultLastSelectType
,
consultLastSelectPosition
)
mPresenter
?.
getConfideData
(
confideLastSelectType
,
confideLastSelectPosition
)
}
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_USER_MAIN_PAGE_VISIT
)
ActionCountUtils
.
count
(
"daoyi_advertisement_page|daoyi_advertisement_visit"
,
"1"
)
showConsultAssistantDialog
()
}
}
...
...
m-im/src/main/java/com/yidianling/im/ui/page/NewMultiMessageFragment.kt
View file @
4fd92763
...
...
@@ -85,10 +85,8 @@ class NewMultiMessageFragment : BaseFragment() {
override
fun
onResume
()
{
super
.
onResume
()
count
(
"ydl_user_message_page|ydl_user_message_page_visit"
)
startTime
=
System
.
currentTimeMillis
()
getMsgData
()
NIMClient
.
getService
(
MsgService
::
class
.
java
).
setChattingAccount
(
MsgService
.
MSG_CHATTING_ACCOUNT_NONE
,
SessionTypeEnum
.
None
...
...
@@ -101,6 +99,13 @@ class NewMultiMessageFragment : BaseFragment() {
MsgService
.
MSG_CHATTING_ACCOUNT_NONE
,
SessionTypeEnum
.
None
)
if
(
startTime
!=
0L
){
endTime
=
System
.
currentTimeMillis
()
count
(
"ydl_user_message_page|ydl_user_message_page_stay_visit"
,
String
.
valueOf
(
endTime
-
startTime
)
)
}
}
override
fun
onDestroy
()
{
...
...
@@ -112,8 +117,9 @@ class NewMultiMessageFragment : BaseFragment() {
super
.
setUserVisibleHint
(
isVisibleToUser
)
if
(
isVisibleToUser
&&
getIsViewCreated
())
{
getMsgData
()
}
else
{
count
(
"ydl_user_message_page|ydl_user_message_page_visit"
)
}
if
(!
isVisibleToUser
){
if
(
startTime
!=
0L
){
endTime
=
System
.
currentTimeMillis
()
count
(
...
...
m-user/src/main/java/com/yidianling/user/mine/MineFragment.java
View file @
4fd92763
...
...
@@ -219,7 +219,17 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
}
}
@Override
public
void
onPause
()
{
super
.
onPause
();
if
(
startTime
!=
0L
){
endTime
=
System
.
currentTimeMillis
();
ActionCountUtils
.
Companion
.
count
(
YDL_USER_MY_PAGE_STAY_VISIT
,
String
.
valueOf
(
endTime
-
startTime
));
}
}
private
void
showConsultAssistantDialog
()
{
ActionCountUtils
.
Companion
.
count
(
"daoyi_advertisement_page|daoyi_advertisement_visit"
,
"4"
);
ModularServiceManager
.
INSTANCE
.
provide
(
IConsultantService
.
class
).
showConsultAssistantMineDialog
(
getActivity
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment