Skip to content

公众号 新建草稿不支持图片草稿消息结构 #3571

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

Open
stick-i opened this issue May 6, 2025 · 2 comments
Open

公众号 新建草稿不支持图片草稿消息结构 #3571

stick-i opened this issue May 6, 2025 · 2 comments
Milestone

Comments

@stick-i
Copy link

stick-i commented May 6, 2025

简要描述

新建草稿的接口中,有一个新建“图片草稿”的部分。

从代码上看,对应的类是 WxMpDraftArticles,目前尚未支持 图片草稿。

Image

官方文档地址

新建草稿,文档地址
https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Add_draft.html

@stick-i
Copy link
Author

stick-i commented May 6, 2025

这个文章类型涉及到新建草稿、获取草稿、修改草稿等多个微信接口。

我正在考虑直接将图片消息结构的所有字段都添加到原来的类 WxMpDraftArticles 当中,以减少代码改动,保证兼容性。

如果这个修改方案OK的话,大佬吱个声,我提个pr。

@binarywang
Copy link
Owner

可以,注意添加单元测试代码

@binarywang binarywang added this to the 4.7.6 milestone May 8, 2025
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

No branches or pull requests

2 participants