Commit 8fc81ea5 by 刘鹏

feat: 1. 埋点外部加入deviceid参数,2. im消息文案替换

parent f79f4b0f
...@@ -78,11 +78,23 @@ class ExpertConsultServiceListDialog(val mContext: Context, val mList: List<Serv ...@@ -78,11 +78,23 @@ class ExpertConsultServiceListDialog(val mContext: Context, val mList: List<Serv
override fun addTime() { // 提醒添加时间回调 override fun addTime() { // 提醒添加时间回调
dismiss() 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 customTime = CustomAttachSubScriptTime("我想预约服务,请尽快开启服务时间")
val message = MessageBuilder.createCustomMessage(toUid, SessionTypeEnum.P2P, "请尽快添加可预约时间", customTime) val message = MessageBuilder.createCustomMessage(
NIMClient.getService(MsgService::class.java).sendMessage(message, false).setCallback(object : toUid,
SessionTypeEnum.P2P,
"我想预约服务,请尽快开启服务时间",
customTime
)
NIMClient.getService(MsgService::class.java).sendMessage(message, false)
.setCallback(object :
RequestCallback<Void> { RequestCallback<Void> {
override fun onSuccess(param: Void?) { override fun onSuccess(param: Void?) {
MessageListPanelHelper.getInstance().notifyAddMessage(message) MessageListPanelHelper.getInstance().notifyAddMessage(message)
......
...@@ -21,7 +21,6 @@ import com.ydl.ydlcommon.data.http.BaseAPIResponse ...@@ -21,7 +21,6 @@ import com.ydl.ydlcommon.data.http.BaseAPIResponse
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.yidianling.common.tools.RxDeviceTool import com.yidianling.common.tools.RxDeviceTool
import com.yidianling.common.tools.RxImageTool import com.yidianling.common.tools.RxImageTool
import com.yidianling.common.tools.ToastUtil
import com.yidianling.im.R import com.yidianling.im.R
import com.yidianling.im.api.service.IImService import com.yidianling.im.api.service.IImService
import com.yidianling.im.bean.BusyBean import com.yidianling.im.bean.BusyBean
...@@ -154,11 +153,11 @@ class ExpertConsultServiceListDialog2( ...@@ -154,11 +153,11 @@ class ExpertConsultServiceListDialog2(
) )
} }
// 发送提醒消息 // 发送提醒消息
val customTime = CustomAttachSubScriptTime("请尽快添加可预约时间") val customTime = CustomAttachSubScriptTime("我想预约服务,请尽快开启服务时间")
val message = MessageBuilder.createCustomMessage( val message = MessageBuilder.createCustomMessage(
toUid, toUid,
SessionTypeEnum.P2P, SessionTypeEnum.P2P,
"请尽快添加可预约时间", "我想预约服务,请尽快开启服务时间",
customTime customTime
) )
NIMClient.getService(MsgService::class.java).sendMessage(message, false) NIMClient.getService(MsgService::class.java).sendMessage(message, false)
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:layout_toRightOf="@+id/packte_im" android:layout_toRightOf="@+id/packte_im"
android:paddingRight="10dp" android:paddingRight="10dp"
android:text="请尽快添加可预约时间" android:text="我想预约服务,请尽快开启服务时间"
android:textColor="#ffffff" android:textColor="#ffffff"
android:textSize="14sp" /> android:textSize="14sp" />
......
...@@ -270,7 +270,7 @@ class ActionCountUtils { ...@@ -270,7 +270,7 @@ class ActionCountUtils {
* 所以Utils.getIMEI(topTaskActivity)传入activity解决这个问题 * 所以Utils.getIMEI(topTaskActivity)传入activity解决这个问题
* */ * */
if (DeviceTool.checkHasAgreeSecret()){ if (DeviceTool.checkHasAgreeSecret()) {
deviceId = if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) { deviceId = if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) {
val topTaskActivity = ActivityManager.getInstance().getTopTaskActivity() val topTaskActivity = ActivityManager.getInstance().getTopTaskActivity()
//获取imei //获取imei
...@@ -280,7 +280,8 @@ class ActionCountUtils { ...@@ -280,7 +280,8 @@ class ActionCountUtils {
DeviceIDHelper.getInstance().deviceId DeviceIDHelper.getInstance().deviceId
} }
} }
//外部参数添加deviceid
actionDataParams.deviceId(deviceId)
baiduActionDataParams.deviceId(deviceId) baiduActionDataParams.deviceId(deviceId)
baiduActionDataParams.convertType(convertType) baiduActionDataParams.convertType(convertType)
baiduActionDataParams.convertTime(System.currentTimeMillis() / 1000) baiduActionDataParams.convertTime(System.currentTimeMillis() / 1000)
...@@ -288,9 +289,12 @@ class ActionCountUtils { ...@@ -288,9 +289,12 @@ class ActionCountUtils {
baiduActionDataParams.appName(appName) baiduActionDataParams.appName(appName)
try { try {
@SuppressLint("HardwareIds") val id = @SuppressLint("HardwareIds") val id =
if (DeviceTool.checkHasAgreeSecret()){ if (DeviceTool.checkHasAgreeSecret()) {
Settings.Secure.getString(RxTool.getContext().contentResolver, Settings.Secure.ANDROID_ID) Settings.Secure.getString(
}else{ RxTool.getContext().contentResolver,
Settings.Secure.ANDROID_ID
)
} else {
"" ""
} }
LogUtil.e("androidid未加密:${id}") LogUtil.e("androidid未加密:${id}")
......
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