微信公众号客服消息发送小程序卡片报invalid type hint?
发布于 5 年前 作者 fang31 14561 次浏览 来自 官方Issues

公众号appID: wx761ba73410155e33

发送参数:

Content-Type: application/json
User-Agent: vscode-restclient
Accept-Encoding: gzip
Content-Length: 389
 
{
  "touser": "oXEQQuOFFluW_zYKNAZ_LoIqWB8k",
  "msgtype": "miniprogrampage",
  "miniprogrampage": {
    "title": "title",
    "appid": "wxe2d3df25943b54a5",
    "pagepath": "miniprogram_npm/[@pps](/user/pps)/panshi-wxui/pages/boot/index?officialOpenId=oXEQQuOFFluW_zYKNAZ_LoIqWB8k&channel=wetamp_dynamic",
    "thumb_media_id": "bUq6oF8lak00Yem8zmfwmdQJU5POSS464uwZBHvQ9AM"
  }
}

返回:

HTTP/1.1 200 OK
Connection: close
Content-Type: application/json; encoding=utf-8
Date: Thu, 17 Oct 2019 06:04:02 GMT
Content-Length: 60
 
{
  "errcode": 45162,
  "errmsg": "invalid type hint: [lA02423936]"
}

请问type 为什么不对呀?以前这么发都成功都

2 回复

检查下小程序是否和公众号关联,现在改了只能发与公众号关联的小程序

详细见此调整:

https://developers.weixin.qq.com/community/develop/doc/00008e0564435833bf588fbbb56001?highline=公众号

海外号只允许发送 text/mpnews类型

回到顶部