服务端使用小程序订阅消息,发送订阅消息时报错:{"errcode":40003,"errmsg":"invalid openid rid: 672031ef-7f8756a1-62a63657"};核对了openId时正确的订阅消息模板ID也是正确的,使用小程序订阅了模板ID,但是发送时报错!
使用rid查询结果:
{
errcode: 0,
errmsg: "ok",
request: {
invoke_time: 1730169384,
cost_in_ms: 12,
request_url: "access_token=85_YvxDublODSH9iw_3M6IBcBt55Q_8Pvu4AWWZjnj7UuEBOM3TsV-kldPrjegUoRNk-MyBbQqKtExX5fVhQrgRC9rRalkM8oTtL1YbPDSh2xrd54HqxMtnymXc6KsRCXbABAUFA",
request_body: "{"template_id":"AquJDauK7bXqhTMOhkAd17fR62eI3yWKbdNZWDuBSKc","touser":"oMhNP61kMM7sU-E5w1NzanC_JyRE","data":"{\"character_string7\":{\"value\":\"2024-10-29-85128\"},\"time8\":{\"value\":\"2024-10-29 10:36:24\"},\"time15\":{\"value\":\"2024-10-29\"}}","miniprogram_state":"developer","lang":"zh_CN"}",
response_body: "{"errcode":40003,"errmsg":"invalid openid rid: 67204a28-7869325a-02edec63"}",
client_ip: "隐藏",
},
}
access_token,appid,openid是同一个小程序的么?