https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Service_Center_messages.htmlhttps://developers.weixin.qq.com/doc/offiaccount/openApi/get_rid_info.html
小程序和公众号已绑定
有两个微信小程序appid, 例如A的appid = 1,B的appid = 2,
同一份代码,例如:
$message = [
'touser' => $openId,
'msgtype' => 'text',
'text' => [
'content' => "感谢关注微信服务号!请点击【绑定】进行身份验证,更多精彩请点击:\n" .
],
data-miniprogram-appid='1' 正常,能推送信息
data-miniprogram-appid='2' 不正常,报错:{"errcode":45086,"errmsg":"invalid attrbute 'data-miniprogram-appid' rid: 67ca982b-3f7384ba-52381e49"}
微信公众平台,我确定小程序A和小程序B跟微信公众号是绑定的
你好,日志查看请求包,联系下你们的后端开发吗?
{"touser":"ofPTz1CexZ_KYoceOiEMg4Iz31qY","msgtype":"text","text":{"content":"感谢关注“辉龙职聘”微信服务号!请点击【绑定】</a>进行身份验证,完善您的求职简历,更多精彩请点击:*点击菜单栏,获取更多招聘服务~"}}
{
"errcode": 0,
"errmsg": "ok",
"request": {
"invoke_time": 1741330475,
"cost_in_ms": 280,
"request_url": "access_token=...",
"request_body": "{\"touser\":\"ofPTz1CexZ_KYoceOiEMg4Iz31qY\",\"msgtype\":\"text\",\"text\":{\"content\":\"感谢关注“辉龙职聘”微信服务号!请点击<a href='' data-miniprogram-appid='wxe2f13751142642e3' data-miniprogram-path='pages\\/tabPage\\/index\\/index'>【绑定】<\\/a>进行身份验证,完善您的求职简历,更多精彩请点击:\\n*点击菜单栏,获取更多招聘服务~\"}}",
"response_body": "{\"errcode\":45086,\"errmsg\":\"invalid attrbute 'data-miniprogram-appid' rid: 67ca982b-3f7384ba-52381e49\"}",
"client_ip": "14..16.118..."
}
}
{
"errcode": 45064,
"errmsg": "no permission to use weapp in menu rid: 67ce46fe-2a8d06d3-55149c04"
}