模板消息返回为41028
wx.request({ url: "https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=10_vTijh7omo8JtyORvlXrtJY6xiV7n4HAMp8ZV8iBMvep_0W3VfmAhwS9BL4anlYstoUY71Xmf2hPVQ6b4AG88OGHfJSYQinTfFYUwFJMZCWUratjm1K1TkhsBKhO0pjOkLkXrGNLRLeWNabGrHERcADASPC" , data: { "touser" : "oX9JY5GkEO13BMjeagR28ncPIWMQ" , "template_id" : "kW5L_flu7tPIY87RDR0IsyLlGZkP90hzkwxb6YRzxoM" , "form_id" : "wx0817393044479030bd8a55241769103178" }, "data": {"keyword1": { "value": "2018-06-08 05:39:46" }, "keyword2":{ "value": "测试多图" }, "keyword3": { "value": "505255542018060850525555" }, "keyword4": { "value": "0.01" } }}, method: "POST" , success: function (res) { console.log(res.data) }, fail: function (res) { console.log(res.data) } }) |
是支付场景下使用的,为了方便观看我把传的值都给定死了,form_id(prepay_id)是刚支付成功的,不可能存在过期,也确认过了跟下单时的一样form_id应该是下订单时的prepay_id吧,无论是prepay_id还是form_id都试过了,都返回的41028 返回值: {errcode: 41028, errmsg: “invalid form id hint: [6G6Dea0331ge25]”}
4 回复
你好,41028的问题已经发基础库修复了,请确认是否是代码有误呢?
参考文档:
https://developers.weixin.qq.com/miniprogram/dev/api/notice.html