Skip to content

发送图文客服消息bug原因 #3

@roc112008

Description

@roc112008

toNewsJson后获得json数据如下
{ "msgtype":"news", "news":{ "articles":{ "list":[ { "description":"描述", "picUrl":"xxxxx", "title":"标题", "url":"http://www.baidu.com" } ] } }, "touser":"xxxxx" }
官方文档为
{ "touser":"OPENID", "msgtype":"news", "news":{ "articles": [ { "title":"Happy Day", "description":"Is Really A Happy Day", "url":"URL", "picurl":"PIC_URL" }, { "title":"Happy Day", "description":"Is Really A Happy Day", "url":"URL", "picurl":"PIC_URL" } ] } }
articles这一层是JSONArray,不需要再封装一层list。

然后感谢作者,减少了我好多工作量!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions