فهرست منبع

1.IM添加医生评价功能

王鹏鹏 2 سال پیش
والد
کامیت
a8fcc8d658
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      tuichat/src/main/java/com/tencent/qcloud/tuikit/tuichat/bean/CustomEndConsultationBean.java

+ 2 - 1
tuichat/src/main/java/com/tencent/qcloud/tuikit/tuichat/bean/CustomEndConsultationBean.java

@@ -30,7 +30,8 @@ public class CustomEndConsultationBean extends TUIMessageBean {
         String data = new String(v2TIMMessage.getCustomElem().getData());
         String description = v2TIMMessage.getCustomElem().getDescription();
         if (!TextUtils.isEmpty(description)) {
-            chatIdBean = new Gson().fromJson(description, ChatIdBean.class);
+            chatIdBean = new ChatIdBean();
+            chatIdBean.setChatId(description);
         }
 
         if (!TextUtils.isEmpty(data)) {