统一服务消息API,2个小程序关联同一个公众号,只有第一个小程序的openid可以正常发送?
发布于 3 年前 作者 ming87 8676 次浏览 来自 官方Issues

消息接口:uniformMessage.send

问题描述:在同一个主体且开放平台已绑定的情况下,使用统一服务消息,在touser里除了使用第一个关联小程序的openid可以正常发送公众号的模板消息外,另外的小程序均提示openid 失败40003!

公众号appid:wx8e7fc912d992d83a

第一个小程序(成功的那个):

appid / openid:wxd9bedb04fd2ae36d / oy8f15231vdRF2oeWFxKW8K0kht8

        post body:
 {
    "touser": "oXKVO4wDEXqDvimH_SvTbpQ2XUc8",
    "mp_template_msg": {
        "appid": "wx8e7fc912d992d83a",
        "template_id": "a6sWaxX0cVFW-6C4gnVHN2C22f3uxzzScaoEgfjXhJ4",
        "url": "http://weixin.qq.com/download",
        "miniprogram": {
            "appid": "wx920ebad2c9208f75",
            "page": "index"
        },
        "data": {
            "first": {
                "value": "xxxx",
                "color": "#173177"
            },
            "keyword1": {
                "value": "xxxxx",
                "color": "#173177"
            },
            "keyword2": {
                "value": "xxxxx",
                "color": "#173177"
            },
            "remark": {
                "value": "请及时查看!",
                "color": "#173177"
            }
        }
    }
}

第二个小程序(失败的那个):

appid / openid:wx920ebad2c9208f75 / oy8f15231vdRF2oeWFxKW8K0kht8

        post body:
{
    "touser": "oy8f15231vdRF2oeWFxKW8K0kht8",
    "mp_template_msg": {
        "appid": "wx8e7fc912d992d83a",
        "template_id": "a6sWaxX0cVFW-6C4gnVHN2C22f3uxzzScaoEgfjXhJ4",
        "url": "http://weixin.qq.com/download",
        "miniprogram": {
            "appid": "wx920ebad2c9208f75",
            "page": "index"
        },
        "data": {
            "first": {
                "value": "xxxxxx!",
                "color": "#173177"
            },
            "keyword1": {
                "value": "xxxxx",
                "color": "#173177"
            },
            "keyword2": {
                "value": "2021-12-31",
                "color": "#173177"
            },
            "remark": {
                "value": "请及时查看!",
                "color": "#173177"
            }
        }
    }
}

刚才调试的报错信息: {“errcode”:40003,“errmsg”:“invalid openid rid: 61ce63fc-2b9b868e-52e57537”}

冰天雪地裸体跪求帮助!

1 回复

把两个小程序换个位置,或者第一个不发送;就立即反证了你的结论不正确。

排查:是否同主体?

回到顶部