|
|
@@ -12,6 +12,7 @@ import com.alibaba.android.arouter.launcher.ARouter
|
|
|
import com.bumptech.glide.Glide
|
|
|
import com.tencent.imsdk.v2.*
|
|
|
import com.tencent.qcloud.tuikit.tuichat.bean.message.PatientStartConsultationBean
|
|
|
+import com.yingyang.home.BuildConfig
|
|
|
import com.yingyang.home.R
|
|
|
import com.yingyang.home.databinding.ActivityHomeBinding
|
|
|
import com.yingyangfly.baselib.bean.MessageBean
|
|
|
@@ -22,6 +23,7 @@ import com.yingyangfly.baselib.dialog.MessageDialog
|
|
|
import com.yingyangfly.baselib.dialog.TipsDialog
|
|
|
import com.yingyangfly.baselib.ext.getEndAnimation
|
|
|
import com.yingyangfly.baselib.ext.getScaleAnimation
|
|
|
+import com.yingyangfly.baselib.ext.loge
|
|
|
import com.yingyangfly.baselib.ext.show
|
|
|
import com.yingyangfly.baselib.ext.toast
|
|
|
import com.yingyangfly.baselib.guideview.Guide
|
|
|
@@ -661,17 +663,17 @@ class HomeActivity : BaseMVVMActivity<ActivityHomeBinding, HomeViewModel>(), Vie
|
|
|
*/
|
|
|
private fun makeMessageAsRead(msg: V2TIMMessage) {
|
|
|
runOnUiThread {
|
|
|
- V2TIMManager.getConversationManager()
|
|
|
- .cleanConversationUnreadMessageCount(String.format("c2c_%s", msg.sender),
|
|
|
- 0,
|
|
|
- 0,
|
|
|
- object : V2TIMCallback {
|
|
|
- override fun onSuccess() {
|
|
|
- }
|
|
|
+ V2TIMManager.getConversationManager().cleanConversationUnreadMessageCount(
|
|
|
+ String.format("c2c_%s", msg.sender),
|
|
|
+ 0,
|
|
|
+ 0,
|
|
|
+ object : V2TIMCallback {
|
|
|
+ override fun onSuccess() {
|
|
|
+ }
|
|
|
|
|
|
- override fun onError(p0: Int, p1: String?) {
|
|
|
- }
|
|
|
- })
|
|
|
+ override fun onError(p0: Int, p1: String?) {
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -817,6 +819,10 @@ class HomeActivity : BaseMVVMActivity<ActivityHomeBinding, HomeViewModel>(), Vie
|
|
|
if (TextUtils.isEmpty(description).not()) {
|
|
|
messageBean.description = description
|
|
|
}
|
|
|
+ if (BuildConfig.DEBUG) {
|
|
|
+ val messageInfo = GsonUtil.GsonString(messageBean)
|
|
|
+ messageInfo.loge()
|
|
|
+ }
|
|
|
when (messageBean.businessID) {
|
|
|
"A" -> {
|
|
|
purchaseServices(messageBean)
|