收藏
回答

公众号模板消息,加上miniprogram后发生成功,但收不到消息。

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"}}}

回答关注问题邀请回答
收藏

1 个回答

  • 宋庭莱
    宋庭莱
    2022-08-11

    问题解决了,需要client_msg_id每次一样

    2022-08-11
    有用
    回复
登录 后发表内容