记得上下班打卡 | git大法好,push需谨慎

Commit 55ca4d5f authored by jiangxiulong's avatar jiangxiulong

msg 跳转

parent b103f13b
......@@ -72,6 +72,7 @@ liquidnet:
phpPayUrl: http://devdragon.zhengzai.tv
phpMallUrl: https://devmall.zhengzai.tv
platformUrl: https://devplatform.zhengzai.tv
h5Url: https://devm.zhengzai.tv
shunfeng:
url: "https://butler-dev-ms.sf-express.com"
sk: 21e9a70f677a2bf29dfa2b3bead4f018
......
......@@ -73,6 +73,7 @@ liquidnet:
phpPayUrl: http://testdragon.zhengzai.tv
phpMallUrl: https://testmall.zhengzai.tv
platformUrl: https://testplatform.zhengzai.tv
h5Url: https://devm.zhengzai.tv
shunfeng:
url: "https://butler-dev-ms.sf-express.com"
sk: 21e9a70f677a2bf29dfa2b3bead4f018
......
......@@ -40,6 +40,8 @@ public class SweetWechatTemplateServiceImpl {
private String appid;
@Value("${liquidnet.wechat.zhengzai.service.secret}")
private String secret;
@Value("${liquidnet.client.admin.h5Url}")
private String h5Url;
@Autowired
private RedisDataUtils redisDataUtils;
......@@ -77,14 +79,14 @@ public class SweetWechatTemplateServiceImpl {
// 模板id
.templateId(templateId)
// 模板跳转链接
// .url("")
.url(h5Url.concat("/#/ticket/detail?id=").concat(remindInfo.getPerformancesId()))
.build();
// 添加模板数据
templateMessage.addData(new WxMpTemplateData("first", "您"))
templateMessage.addData(new WxMpTemplateData("first", "您关注的演出即将开始售票"))
.addData(new WxMpTemplateData("keyword1", performanceVo.getTitle()))
.addData(new WxMpTemplateData("keyword2", kylinTicketTimesVo.getTitle()))
.addData(new WxMpTemplateData("keyword3", performanceVo.getFieldName()))
.addData(new WxMpTemplateData("remark", "备注"));
.addData(new WxMpTemplateData("remark", "点击这里跳转购票"));
String msgId = null;
try {
// 发送模板消息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment