curl --location --request POST 'https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=72_jEzUJ7n8Auz0xdKE7ueSfEtAigz9vfp8LBBKjCKdF3DIM77zx0i_BsXBeKEObSkyko1ySCr5hSWfU_bwAagDsWbGUGUcGmOOLsiqBef3W4n2D2BrOOpJ7vKrmdAFIIeAAANQQ' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"touser": "oZU1i6TW5SIaMQMiRugTcxhfELcI",
"template_id": "Oh51IUZx8kpzz0zlsXqQ9skPDP446nm7GGvmSatv8VY",
"url": "https://dyy-mxc.test.sdedfdus.com/view/exam/detail?id=1145893&did=17574541",
"client_msg_id": "",
"miniprogram": {
"appid": "",
"pagepath": ""
},
"data": {
"thing2": {
"value": "某某"
},
"time3": {
"value": "2018.01.01"
},
"thing4": {
"value": "广州至北京"
}
}
}'
1、模板ID不是同一个。
2、模板详情截图是正式号的,最后一张截图你拿测试号的???
我这边用测试号添加和你一样的字段,没有问题。