https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html
相同入参,不加miniprogram能收到。入参如下:
{"touser":"ouMMGs5jezWyay8tU9MIHaXkAI2M","template_id":"dU3ioEsrozXf01M7bvbhJOipb_y_-NlHMXMRaNhrNFY","url":"http://weixin.qq.com/download","miniprogram":{"appid":"wx5beca244ced909cd","pagepath":"subPages/wei-page/mine-new/index"},"client_msg_id":"MSG_000001","data":{"first":{"value":"恭喜你购买成功!","color":"#173177"},"keyword1":{"value":"巧克力","color":"#173177"},"keyword2":{"value":"39.8元","color":"#173177"},"keyword3":{"value":"2014年9月22日","color":"#173177"},"remark":{"value":"欢迎再次购买3!","color":"#173177"}}}
问题解决了,需要client_msg_id每次一样