mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-03 20:27:46 +08:00
🎨 【企业微信】发送图文消息里的跳转到小程序的相关参数完善补充
This commit is contained in:
parent
63c0eb107e
commit
568a989576
@ -41,4 +41,10 @@ public class NewArticle implements Serializable {
|
||||
* 按钮文字,仅在图文数为1条时才生效。 默认为“阅读全文”, 不超过4个文字,超过自动截断。该设置只在企业微信上生效,微工作台(原企业号)上不生效。
|
||||
*/
|
||||
private String btnText;
|
||||
|
||||
/**小程序appid,必须是与当前应用关联的小程序,appid和pagepath必须同时填写,填写后会忽略url字段**/
|
||||
private String appid;
|
||||
|
||||
/**点击消息卡片后的小程序页面,仅限本小程序内的页面。appid和pagepath必须同时填写,填写后会忽略url字段**/
|
||||
private String pagepath;
|
||||
}
|
||||
|
@ -408,6 +408,8 @@ public class WxCpMessage implements Serializable {
|
||||
articleJson.addProperty("description", article.getDescription());
|
||||
articleJson.addProperty("url", article.getUrl());
|
||||
articleJson.addProperty("picurl", article.getPicUrl());
|
||||
articleJson.addProperty("appid", article.getAppid());
|
||||
articleJson.addProperty("pagepath", article.getPagepath());
|
||||
articleJsonArray.add(articleJson);
|
||||
}
|
||||
newsJsonObject.add("articles", articleJsonArray);
|
||||
|
Loading…
Reference in New Issue
Block a user