要实现的业务功能:openId为A的用户在用户版小程序支付成功后,需要给商家版的小程序管理员openId为B的微信用户推送订单支付成功模板消息。
调用接口地址:
https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=ACCESS_TOKEN
实际传参数为(其中form_id为本次支付的prepay_id):
data:{"data":{"keyword3":{"value":"0.01"},"keyword1":{"value":"2018-06-01 09:38"},"keyword2":{"value":"15278170874256561921"}},"form_id":"wx010938080551772897b851982748666909","template_id":"W720ZZzWrHRZ0KcWYqqXCoCsYN7Wk8KZOi3grzpEdTk","touser":"o1Vdc5fWr_y3FEMO3j7nuJMybTGc"}
推送失败报错:[{"errcode":41028,"errmsg":"invalid form id hint: [7COssA0112ge21]"}]
现在给openId为A的用户自己发模板消息也不成功,麻烦给帮忙看看问题
参数:
data:{"data":{"keyword3":{"value":"0.01"},"keyword1":{"value":"2018-06-01 10:26"},"keyword2":{"value":"15278199712958880698"}},"form_id":"prepay_id=wx011026117243576bb45d2bb13300909122","template_id":"W720ZZzWrHRZ0KcWYqqXCoCsYN7Wk8KZOi3grzpEdTk","touser":"oPr8b5G3zNfc4295bVicMsUWInzM"}
推送结果:[{"errcode":40003,"errmsg":"invalid openid hint: [IkiHka0990ge29]"}]
模板消息只能给自己给自己发