用微信公众号发送模版消息,接口返回成功,但是用户接收到的消息显示不全,接口返回{"errcode":0,"errmsg":"ok","msgid":2918131553548107776},要发送的消息是:{"template_id":"M7tM8cGrfrIsMokUToIO8djz_ScXmZhLe6Ibh3sfumE","touser":"oktgbwobcLNO-EH3dULTpIzGDd0s","data":{"first":{"value":"【项目预警】","color":"#173177"},"device":{"value":"002","color":"#173177"},"time":{"value":"2023-05-08 14:14:25","color":"#173177"},"remark":{"value":"预警信息:项目:002, 周期:315, 监测点:CS3, X坐标累计超限, 偏移-1.1毫米;Y坐标累计超限, 偏移-0.3毫米; Z坐标累计超限, 偏移0.1毫米; ","color":"#FF0000"}}}
用户收到的消息是:
已取消首行内容和备注:https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncement&announce_id=11680142498cInTZ&version=&lang=zh_CN&token=2080631067
已经整改了
历史模板:中间内容现在限制最多20字,微信官方文档:https://mp.weixin.qq.com/s/hvLO4Vs75NXDA__SxuyKXw
类目模板:每种类型的字段都有限制长度,微信官方文档:https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html#%E7%B1%BB%E7%9B%AE%E6%A8%A1%E6%9D%BF%E6%B6%88%E6%81%AF
参考下公告《关于规范公众号模板消息的再次公告》:https://mp.weixin.qq.com/s/hvLO4Vs75NXDA__SxuyKXw