Commit 5b922a0e by 吕明尚

分享页面增加参数

parent 86dd17f3
...@@ -581,7 +581,7 @@ public class WechatNewServiceImpl implements WechatNewService { ...@@ -581,7 +581,7 @@ public class WechatNewServiceImpl implements WechatNewService {
OfficialAccountTemplate officialAccountTemplate = new OfficialAccountTemplate(); OfficialAccountTemplate officialAccountTemplate = new OfficialAccountTemplate();
Miniprogram miniprogram = new Miniprogram(); Miniprogram miniprogram = new Miniprogram();
miniprogram.setAppid(weChatConfig.getAppId()); miniprogram.setAppid(weChatConfig.getAppId());
miniprogram.setPagepath("/pages/orderResult/orderResult?orderNo=" + byOrderNo.getOrderNo()); miniprogram.setPagepath("/pages/orderResult/orderResult?orderNo=" + byOrderNo.getOrderNo() + "&share=share");
officialAccountTemplate.setMiniprogram(miniprogram); officialAccountTemplate.setMiniprogram(miniprogram);
HashMap<String, SendTemplateMessageItemVo> data = new HashMap<>(); HashMap<String, SendTemplateMessageItemVo> data = new HashMap<>();
SStore sStore = storeService.getById(byOrderNo.getStoreId()); SStore sStore = storeService.getById(byOrderNo.getStoreId());
...@@ -694,7 +694,7 @@ public class WechatNewServiceImpl implements WechatNewService { ...@@ -694,7 +694,7 @@ public class WechatNewServiceImpl implements WechatNewService {
TemplateMessageVo templateMessageVo = new TemplateMessageVo(); TemplateMessageVo templateMessageVo = new TemplateMessageVo();
// String url = "https://www.coujio.com/front-api/order/" + byOrderNo.getOrderNo(); // String url = "https://www.coujio.com/front-api/order/" + byOrderNo.getOrderNo();
//测试页面 //测试页面
String url = "/pages/orderResult/orderResult?orderNo=" + byOrderNo.getOrderNo(); String url = "/pages/orderResult/orderResult?orderNo=" + byOrderNo.getOrderNo() + "&share=share";
templateMessageVo.setPage(url); templateMessageVo.setPage(url);
templateMessageVo.setMiniprogram_state(miniprogramState); templateMessageVo.setMiniprogram_state(miniprogramState);
HashMap<String, SendTemplateMessageItemVo> data = new HashMap<>(); HashMap<String, SendTemplateMessageItemVo> data = new HashMap<>();
......
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