This repository was archived by the owner on Mar 9, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
📌 如何修复因2023-05-04微信推送服务规范整改,导致推送服务异常? #326
Labels
question
Further information is requested
Comments
确实 |
总结一下我发现的问题:
下面是我调试好的模板,供大家参考:
|
\r 是可以换行的 |
怎么了,怎么了,啊!发生什么了 |
在java中使用 String[] splits = StrUtil.split(longText, 20); //longText为长文本
for (int i = 0; i < splits.length; i++) {
templateMessage.addData(new WxMpTemplateData("rain_" + i, splits[i], (String) colors.get(14))); //这个颜色属性无关紧要
} 将长文本分割成多个字符串,我这里是固定为20的长度 小情书:{{rain_0.DATA}} {{rain_1.DATA}} {{rain_2.DATA}} {{rain_3.DATA}} {{rain_4.DATA}} 可以绕过长文本限制 |
不懂就问,具体应该怎么填写,你说的java中使用要在哪里写入你的语句 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
❓我需要查看本教程嘛?
只涉及到【微信测试号】推送的用户,其他方式不受影响。
❓修复了什么?
❓微信测试号模板应该如何修改才能支持新版本?
{{xxxx.Data}}
,{{xxxx.Data}}
前必须加可读文字。如:1. {{xxxx.Data}}
\n 空格 °
等都会被屏蔽,甚至直接整行不显示❓可以给一个示例模板嘛(有哪些字段是需要这样处理的)?
The text was updated successfully, but these errors were encountered: