mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-03 05:41:46 +08:00
#534 针对公众号发送模版消息中的小程序path和pagepath问题增加可选参数,如果想让请求使用path作为参数名,设置usePath属性为true即可,否则会使用pagepath。
This commit is contained in:
@ -33,7 +33,7 @@ public class WxMpSubscribeMessageTest {
|
||||
.toUser("OPENID")
|
||||
.templateId("TEMPLATE_ID")
|
||||
.url("URL")
|
||||
.miniProgram(new WxMpSubscribeMessage.MiniProgram("xiaochengxuappid12345", "index?foo=bar"))
|
||||
.miniProgram(new WxMpSubscribeMessage.MiniProgram("xiaochengxuappid12345", "index?foo=bar",false))
|
||||
.scene("SCENE")
|
||||
.title("TITLE")
|
||||
.contentValue("VALUE")
|
||||
|
||||
@ -17,7 +17,7 @@ public class WxMpTemplateMessageTest {
|
||||
WxMpTemplateMessage tm = WxMpTemplateMessage.builder()
|
||||
.toUser("OPENID")
|
||||
.templateId("ngqIpbwh8bUfcSsECmogfXcV14J0tQlEpBO27izEYtY")
|
||||
.miniProgram(new WxMpTemplateMessage.MiniProgram("xiaochengxuappid12345", "index?foo=bar"))
|
||||
.miniProgram(new WxMpTemplateMessage.MiniProgram("xiaochengxuappid12345", "index?foo=bar",true))
|
||||
.url("http://weixin.qq.com/download")
|
||||
.build();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user