Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 28, 2025

企业微信会话存档功能缺少对音视频通话消息类型 voiptext 的支持。根据官方文档添加该消息类型的数据模型。

修改内容

  • WxCpChatModel 中添加 voiptext 字段
  • 新增 VoipText 内部类,包含:
    • callDuration - 通话时长
    • inviteType - 邀请类型 (1: 用户主动发起, 2: 群主发起)

使用示例

WxCpChatModel chatModel = WxCpChatModel.fromJson(decryptedJson);
if ("voiptext".equals(chatModel.getMsgType())) {
    WxCpChatModel.VoipText voipText = chatModel.getVoipText();
    Integer duration = voipText.getCallDuration();
    Integer inviteType = voipText.getInviteType();
}
Original prompt

This section details on the original issue you should resolve

<issue_title>企业微信会话存档功能 未接收消息类型为视频通话的类型</issue_title>
<issue_description>

简要描述

企业微信会话存档功能 未接收消息类型为视频通话的类型
文档链接为:https://developer.work.weixin.qq.com/document/path/91361#%E9%9F%B3%E8%A7%86%E9%A2%91%E9%80%9A%E8%AF%9D

  • WxJava 模块名: weixin-java-cp
  • WxJava 版本号:4.7.0

详细描述

Image

Comments on the Issue (you are @copilot in this section)

@binarywang 欢迎提供PR代码来支持

Custom agent used: 自定义的
需要用中文


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix missing video call message type in WeChat archiving feat(cp): 添加企业微信会话存档音视频通话(voiptext)消息类型支持 Nov 28, 2025
Copilot AI requested a review from binarywang November 28, 2025 13:55
Copilot finished work on behalf of binarywang November 28, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

企业微信会话存档功能 未接收消息类型为视频通话的类型

2 participants