收藏
回答

调用sendUniformMessage 报错 48001 API未授权?

https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=38_Apyd0PJ48bKFfPkqtNrp31N7o0dnLk9qagK-jVw6bplKgD97g0mWls88BLBCx-cJYlVfHed0Pme5RvB3_pQIuu4XmisMcdS3QAZ1nXNrdwYFnsn6nxfR5d9a0qBq9so8046K2ZoCjkOVs38VDETbABAQRG

{

    "touser""oUZ0O5MzONn8UVLHFiNBH93EiCd4",

    "mp_template_msg": {

        "appid""wxaed3886376727dbf",

        "template_id""XlEz0_DOTGk3Atf4kEHQ6m82wyL9gu_CkRNNRqPro2Y",

        "url":"https://applet.henantuanqi.cn",

        "miniprogram": {

            "pagepath""lionfish_comshop/pages/index/index",

            "appid""wx37d79bf1d14bd298"

        },

        "data": {

            "first": {

                "color""#173177",

                "value""您有新的项目需要处理"

            },

            "keyword1": {

                "color""#173177",

                "value""99178282322"

            },

            "keyword2": {

                "color""#173177",

                "value""123123123"

            },

            "keyword3": {

                "color""#173177",

                "value""esdfdsf23234234"

            },

            "keyword4": {

                "color""#173177",

                "value""2020-12-11"

            },

            "remark": {

                "color""#173177",

                "value""这里是备注"

            }

        }

    }

}

以上是我的请求参数,我想要使用下发小程序和公众号统一的服务消息结果返回的参数是:

{

    "errcode"48001,

    "errmsg""api unauthorized rid: 5f98d0f9-0036f7d0-6c7ccaa0"

}

我测试了send这个接口发送公众号模板消息给公众号的openid是没有问题的。

请遇到个这个问题的大神帮我指导一下。


回答关注问题邀请回答
收藏
登录 后发表内容
问题标签