Skip to content

企微会话内容,文件消息转换异常 #3558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tang2330 opened this issue Apr 19, 2025 · 0 comments · Fixed by #3559
Closed

企微会话内容,文件消息转换异常 #3558

tang2330 opened this issue Apr 19, 2025 · 0 comments · Fixed by #3559

Comments

@tang2330
Copy link
Contributor

简要描述

获取解密聊天消息,转换文件消息,出现fileSize的类型转换异常

模块版本情况

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

详细描述

读取消息时发现文件消息的fileSize字段转换异常

Image

查阅企微文档发现 是标注 Uint32类型,但是与解析数据不一致,可能文档未更新
该字段改为Long型即可解决

日志

java.lang.NumberFormatException: Expected an int but was 2287375645 at line 1 column 267 path $.file.filesize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant