array(2) {
["touser"] => string(28) "o43SG4i_l8YpyPD7FVxEIBCW63aM"
["mp_template_msg"] => array(5) {
["appid"] => string(18) "wx0ef2e7d6c6413255"
["template_id"] => string(43) "lOdVuRSQC35MYh9WTPr_69e9BvJ5GUwPa7RqVV9Zm3s"
["url"] => string(0) ""
["miniprogram"] => array(2) {
["appid"] => string(18) "wx09a849a0ffd8e673"
["pagepath"] => string(36) "pages/transfer/yi_package/yi_package"
}
["data"] => array(4) {
["first"] => array(1) {
["value"] => string(24) "您的包裹已入库!"
}
["keyword1"] => array(1) {
["value"] => string(6) "ce5511"
}
["keyword2"] => array(1) {
["value"] => string(19) "2021-11-18 00:38:42"
}
["remark"] => array(1) {
["value"] => string(24) "请及时提交订单!"
}
}
}
}
array(2) {
["errcode"] => int(40013)
["errmsg"] => string(45) "invalid appid rid: 61c194de-2d9a1ef5-4b191696"
}
通过小程序appid和秘钥获取到access_token 然后调用uniform_send下发公众号消息提示invalid appid
小程序已经绑定好公众号的
我也遇到了这个问题,共享云开发环境后,发消息出提示 appid 错误
检查下
miniprogram.appid是不是填错了,不是一个正确的小程序appid
或者小程序和发消息的公众号没有绑定关系。