微信公众号客服消息发送小程序卡片报invalid type hint?

发布于 6 年前作者 fang3114677 次浏览最后编辑 6 年前来自 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/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 回复
dshen
dshen1 楼6 年前

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

详细见此调整:

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

wantao
wantao2 楼6 年前

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