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
8fc81ea5
Commit
8fc81ea5
authored
Aug 10, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 1. 埋点外部加入deviceid参数,2. im消息文案替换
parent
f79f4b0f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
13 deletions
+28
-13
ExpertConsultServiceListDialog.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceListDialog.kt
+16
-4
ExpertConsultServiceListDialog2.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceListDialog2.kt
+2
-3
im_ui_message_subscript_time.xml
m-im/src/main/res/layout/im_ui_message_subscript_time.xml
+1
-1
ActionCountUtils.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/actionutil/ActionCountUtils.kt
+9
-5
No files found.
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceListDialog.kt
View file @
8fc81ea5
...
...
@@ -78,11 +78,23 @@ class ExpertConsultServiceListDialog(val mContext: Context, val mList: List<Serv
override
fun
addTime
()
{
// 提醒添加时间回调
dismiss
()
// 埋点
ActionCountUtils
.
baiDuCountSign3
(
"ydl_user_product_page"
,
"remind_add_click"
,
toUid
,
ActionHandlerStorage
.
getL
(
toUid
).
info
.
name
,
""
)
ActionCountUtils
.
baiDuCountSign3
(
"ydl_user_product_page"
,
"remind_add_click"
,
toUid
,
ActionHandlerStorage
.
getL
(
toUid
).
info
.
name
,
""
)
// 发送提醒消息
val
customTime
=
CustomAttachSubScriptTime
(
"请尽快添加可预约时间"
)
val
message
=
MessageBuilder
.
createCustomMessage
(
toUid
,
SessionTypeEnum
.
P2P
,
"请尽快添加可预约时间"
,
customTime
)
NIMClient
.
getService
(
MsgService
::
class
.
java
).
sendMessage
(
message
,
false
).
setCallback
(
object
:
val
customTime
=
CustomAttachSubScriptTime
(
"我想预约服务,请尽快开启服务时间"
)
val
message
=
MessageBuilder
.
createCustomMessage
(
toUid
,
SessionTypeEnum
.
P2P
,
"我想预约服务,请尽快开启服务时间"
,
customTime
)
NIMClient
.
getService
(
MsgService
::
class
.
java
).
sendMessage
(
message
,
false
)
.
setCallback
(
object
:
RequestCallback
<
Void
>
{
override
fun
onSuccess
(
param
:
Void
?)
{
MessageListPanelHelper
.
getInstance
().
notifyAddMessage
(
message
)
...
...
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceListDialog2.kt
View file @
8fc81ea5
...
...
@@ -21,7 +21,6 @@ import com.ydl.ydlcommon.data.http.BaseAPIResponse
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.yidianling.common.tools.RxDeviceTool
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.im.R
import
com.yidianling.im.api.service.IImService
import
com.yidianling.im.bean.BusyBean
...
...
@@ -154,11 +153,11 @@ class ExpertConsultServiceListDialog2(
)
}
// 发送提醒消息
val
customTime
=
CustomAttachSubScriptTime
(
"
请尽快添加可预约
时间"
)
val
customTime
=
CustomAttachSubScriptTime
(
"
我想预约服务,请尽快开启服务
时间"
)
val
message
=
MessageBuilder
.
createCustomMessage
(
toUid
,
SessionTypeEnum
.
P2P
,
"
请尽快添加可预约
时间"
,
"
我想预约服务,请尽快开启服务
时间"
,
customTime
)
NIMClient
.
getService
(
MsgService
::
class
.
java
).
sendMessage
(
message
,
false
)
...
...
m-im/src/main/res/layout/im_ui_message_subscript_time.xml
View file @
8fc81ea5
...
...
@@ -19,7 +19,7 @@
android:layout_marginTop=
"10dp"
android:layout_toRightOf=
"@+id/packte_im"
android:paddingRight=
"10dp"
android:text=
"
请尽快添加可预约
时间"
android:text=
"
我想预约服务,请尽快开启服务
时间"
android:textColor=
"#ffffff"
android:textSize=
"14sp"
/>
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/actionutil/ActionCountUtils.kt
View file @
8fc81ea5
...
...
@@ -270,7 +270,7 @@ class ActionCountUtils {
* 所以Utils.getIMEI(topTaskActivity)传入activity解决这个问题
* */
if
(
DeviceTool
.
checkHasAgreeSecret
()){
if
(
DeviceTool
.
checkHasAgreeSecret
())
{
deviceId
=
if
(
Build
.
VERSION
.
SDK_INT
<=
Build
.
VERSION_CODES
.
P
)
{
val
topTaskActivity
=
ActivityManager
.
getInstance
().
getTopTaskActivity
()
//获取imei
...
...
@@ -280,7 +280,8 @@ class ActionCountUtils {
DeviceIDHelper
.
getInstance
().
deviceId
}
}
//外部参数添加deviceid
actionDataParams
.
deviceId
(
deviceId
)
baiduActionDataParams
.
deviceId
(
deviceId
)
baiduActionDataParams
.
convertType
(
convertType
)
baiduActionDataParams
.
convertTime
(
System
.
currentTimeMillis
()
/
1000
)
...
...
@@ -288,9 +289,12 @@ class ActionCountUtils {
baiduActionDataParams
.
appName
(
appName
)
try
{
@SuppressLint
(
"HardwareIds"
)
val
id
=
if
(
DeviceTool
.
checkHasAgreeSecret
()){
Settings
.
Secure
.
getString
(
RxTool
.
getContext
().
contentResolver
,
Settings
.
Secure
.
ANDROID_ID
)
}
else
{
if
(
DeviceTool
.
checkHasAgreeSecret
())
{
Settings
.
Secure
.
getString
(
RxTool
.
getContext
().
contentResolver
,
Settings
.
Secure
.
ANDROID_ID
)
}
else
{
""
}
LogUtil
.
e
(
"androidid未加密:${id}"
)
...
...
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