收藏
回答

微信群发接口图片消息成功,但是title自定义不生效?还是默认的分享图片标题,为什么?

https://api.weixin.qq.com/cgi-bin/message/mass/sendall 调用这个接口,发送图片消息,请求参数如下,群发成功,所有用户都接受到消息,但是标题确是分享图片,我设置的标题没有生效,这个是为什么?我在后台编辑,提示我是旧接口发布的,不支持修改,请问为什么我设置title没有生效呢?

#发布的效果图,都能正常接收到!

#微信公众号后台的效果,无法编辑标题

官方文档给的请求示例结构:

#我请求的数据结构

{ "filter": { "is_to_all": true},

"images": {

        "media_ids": [

            "MeSeYGUxa3v8cVEDz_4m3LwLC4K8dHPixdifVRtmVTMA289T7uYHI1CUiur31_s",

            "MeSeYGUxa3v8cVEDz_4m3FZGdMovnHoWXN1fPofL4m_vG_YCnu9jA4cVHRn-k77",

            "MeSeYGUxa3v8cVEDz_4m3Mr0Oz2s9Mu6Zoe71OqGEc-8aPqJxuQX2lHGmaEGTik",

            "MeSeYGUxa3v8cVEDz_4m3Ja5b5nz3aeZHnXlhS3NYxOQT7P2OJowSyN3MzSdpOV",

            "MeSeYGUxa3v8cVEDz_4m3GTT28FoS14KOT5kSkMi-tgcZnb8CX1qlEL4xT90Ops"      ]

    },

    "send_ignore_reprint": 0,

    "recommend": "",

    "title": "行进中国行-demo",

    "msgtype": "image"

}


最后一次编辑于  11-14
回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员--许涛
    社区技术运营专员--许涛
    11-15

    你好,麻烦重新试试,提供下完整的请求包,回包,请求时间点和原始ID

    11-15
    有用
    回复 7
    • SunSmile
      SunSmile
      11-18
      请求的接口:https://api.weixin.qq.com/cgi-bin/message/mass/sendall?access_token=86_ftUMLOeDwCtcpx_h0-rymOby8ULGPa55xeRKilUeSTYsRcRpkx47ckd9glZBKoIcqLEUXQ3aqgH7igwXqHHBI3NSgHv0w5Mx56JfJCjb_-5Xt9ShnKZy6tpA1nybJgcxAV4u1VSrvqlxMijoJRDdAJDWEQ


      请求的参数:{"filter":{"is_to_all":true},"images":{"media_ids":["MeSeYGUxa3v8cVEDz_4m3F901NOnxQRT9fXrA5EGPwdpGrzh-27JObQua1j0xMRX","MeSeYGUxa3v8cVEDz_4m3D9RoVJH4n2Iq1XvU-EDe62e-Y3fgR-mB2n18jn9ctAG","MeSeYGUxa3v8cVEDz_4m3Mcv7Jl7zrz2kvwwJGQW2M_pVW9p6SIZhzYaZoG5SRS7","MeSeYGUxa3v8cVEDz_4m3J0ZvSMMcZpiPSZJz4nCMcNjUG4K5PZd632S0bUzv8nm","MeSeYGUxa3v8cVEDz_4m3IeysYBb5O7bFYvXZ5nDcf3URTSE0BEIJTyp1iXL7UVi"]},"send_ignore_reprint":0,"recommend":"","title":"行进中国行-demo","msgtype":"image"}


      因为每天只能发一篇,上周二周四都是发布成功了的,返回的数据结构应该是成功的
      11-18
      回复
    • SunSmile
      SunSmile
      11-18
      刚查了下14号的签发日志,具体如下:


      INFO [2024-11-14 10:31:00,901][] com.cms.portal.distribution.service.impl.WxMaterialServiceImpl:340 - 微信签发的URL=https://api.weixin.qq.com/cgi-bin/message/mass/sendall?access_token=86_RCaDYFeF7ChqXCuoWdvl6dPE2e2bZAb5DXxiDDn0KfB5EqjUYvDaudP-M7O-0WR6r9JNCN9rqLz7mYVJexBV32ipH__DJ1QW9F-4NeWIgvABPIMUk_XDBUdUj0HHCdb3HbqFiQO7roytYSeVEEQcALDXXJ 
      INFO [2024-11-14 10:31:00,905][] com.cms.portal.distribution.service.impl.WxMaterialServiceImpl:341 - 微信签发的jsonObject={"filter":{"is_to_all":true},"images":{"media_ids":["MeSeYGUxa3v8cVEDz_4m3LwLC4K8dHPixdifVRtmVTMA289T7uYHI1CUiur31q_s","MeSeYGUxa3v8cVEDz_4m3FZGdMovnHoWXN1fPofL4m_vG_YCnu9jA4cVHRrn-k77","MeSeYGUxa3v8cVEDz_4m3Mr0Oz2s9Mu6Zoe71OqGEc-8aPqJxuQX2lHGmaEQGTik","MeSeYGUxa3v8cVEDz_4m3Ja5b5nz3aeZHnXlhS3NYxOQT7P2OJowSyN3MzLSdpOV","MeSeYGUxa3v8cVEDz_4m3GTT28FoS14KOT5kSkMi-tgcZnb8CX1qlEL4xT9x0Ops"]},"send_ignore_reprint":0,"recommend":"","title":"行进中国行-demo","msgtype":"image"} 
      INFO [2024-11-14 10:31:00,906][] com.cms.portal.distribution.service.impl.WxMaterialServiceImpl:342 - GroupServiceImpl-send All 返回数据:{"errcode":0,"errmsg":"send job submission success","msg_id":1000000079,"msg_data_id":2247484551}  
      INFO [2024-11-14 10:31:00,907][] com.cms.portal.distribution.service.impl.WxMaterialServiceImpl:353 - sendAll------> msgId:1000000079
      11-18
      回复
    • 社区技术运营专员--许涛
      社区技术运营专员--许涛
      11-18回复SunSmile
      你的JSON体的大括号存在问题


      你的JSON
      {
       "filter": {
        "is_to_all": true
       },
       "images": {
        "media_ids": ["MeSeYGUxa3v8cVEDz_4m3F901NOnxQRT9fXrA5EGPwdpGrzh-27JObQua1j0xMRX", "MeSeYGUxa3v8cVEDz_4m3D9RoVJH4n2Iq1XvU-EDe62e-Y3fgR-mB2n18jn9ctAG", "MeSeYGUxa3v8cVEDz_4m3Mcv7Jl7zrz2kvwwJGQW2M_pVW9p6SIZhzYaZoG5SRS7", "MeSeYGUxa3v8cVEDz_4m3J0ZvSMMcZpiPSZJz4nCMcNjUG4K5PZd632S0bUzv8nm", "MeSeYGUxa3v8cVEDz_4m3IeysYBb5O7bFYvXZ5nDcf3URTSE0BEIJTyp1iXL7UVi"]
       },
       "send_ignore_reprint": 0,
       "recommend": "",
       "title": "行进中国行-demo",
       "msgtype": "image"
      }
      11-18
      1
      回复
    • 社区技术运营专员--许涛
      社区技术运营专员--许涛
      11-18回复SunSmile
      文档的JSON


      {
         "filter":{
            "is_to_all":false,
            "tag_id":2
         },
         "images": {
            "media_ids": [
               "aaa",
               "bbb",
               "ccc"
            ],
            "recommend": "xxx",
            "title": "yyy",
            "need_open_comment": 1,
            "only_fans_can_comment": 0
         },
         "msgtype":"image"
      }
      11-18
      1
      回复
    • SunSmile
      SunSmile
      11-18回复社区技术运营专员--许涛
      好的,多谢,我修改了明天签发看下效果
      11-18
      回复
    查看更多(2)
登录 后发表内容