Просмотр исходного кода

新增同意和不同意的识别

anderx месяцев назад: 5
Родитель
Сommit
2d6c2a5eaa

+ 5 - 2
src/main/java/com/kede/wechat/service/impl/ConversationContentServiceImpl.java

@@ -254,11 +254,14 @@ public class ConversationContentServiceImpl extends BaseMybatisDao<ChatMsgUserMa
             {
                 String url=pushFileUrl(sdk, msgtype, jsonObject);
                 chatMsg.setMsgurl(url);
+            } else if (msgtype.equals("chatrecord"))
+            {
+                chatMsg.setContent(jsonObject.getString("chatrecord"));
             } else if (msgtype.equals("agree"))
             {
-                chatMsg.setContent("[同意会话聊天]");
+                chatMsg.setContent("[同意会话存储]");
             } else if (msgtype.equals("disagree"))
-                chatMsg.setContent("[不同意会话聊天]");
+                chatMsg.setContent("[不同意会话存储]");
             } else {
                 if (!jsonObject.getString("action").equals("switch")&&!jsonObject.getString("action").equals("recall")) {
                     chatMsg.setContent(jsonObject.toJSONString());