wxApi2.template_send(openid, tpl.getTemplate_id(), url, data);
这里的data是什么模式,没搞明白。
5 回复
Map<String, WxTemplateData> map = new HashMap<>();
WxTemplateData wxTemplateData = new WxTemplateData();
wxTemplateData.set("尊敬的" + bzdata.getNickname() + ":", WxTemplateData.DFT_COLOR);
map.put("first", wxTemplateData);
WxTemplateData wxTemplateData2 = new WxTemplateData();
wxTemplateData2.set(bzdata.getSn(), WxTemplateData.DFT_COLOR);
map.put("keyword1", wxTemplateData2);
WxTemplateData wxTemplateData3 = new WxTemplateData();
wxTemplateData3.set("办证材料待审核", WxTemplateData.DFT_COLOR);
map.put("keyword2", wxTemplateData3);
WxTemplateData wxTemplateData4 = new WxTemplateData();
wxTemplateData4.set("办证材料已提交成功,待审核。", WxTemplateData.DFT_COLOR);
map.put("remark", wxTemplateData4);
tplService.send(bzdata.getWxid(), bzdata.getOpenid(), "405887565", "http://" + Globals.AppDomain + Globals.AppBase + "/public/wx/wechat/" + bzdata.getWxid() + "/oauth?goto_url=" + "http://" + Globals.AppDomain + Globals.AppBase + "/public/wx/bzsx/wdsq/sc/" + bzdata.getId(), map);
添加回复
请先登陆