#534 针对公众号发送模版消息中的小程序path和pagepath问题增加可选参数,如果想让请求使用path作为参数名,设置usePath属性为true即可,否则会使用pagepath。

This commit is contained in:
Binary Wang
2018-08-08 21:33:01 +08:00
parent a24b74603f
commit ebf9baac27
6 changed files with 37 additions and 13 deletions

View File

@ -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")

View File

@ -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();