Commit 962ed0d3 authored by shiyu's avatar shiyu

模板消息

parent ec6b7d76
...@@ -280,9 +280,9 @@ public class SendMsgServiceImpl implements SendMsgService { ...@@ -280,9 +280,9 @@ public class SendMsgServiceImpl implements SendMsgService {
put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20)); put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20));
}}); }});
paramMap.put("thing3", new HashMap() {{ paramMap.put("thing3", new HashMap() {{
put("value", "请及时付款"); put("value", "请在截止时间前及时付款");
}}); }});
String content = "付款截止时间" + DateUtils.toString(auctionOfferNoticeMsg.getPayEndTime()); String content = DateUtils.toString(auctionOfferNoticeMsg.getPayEndTime());
paramMap.put("time4", new HashMap() {{ paramMap.put("time4", new HashMap() {{
put("value", content); put("value", content);
}}); }});
...@@ -366,7 +366,7 @@ public class SendMsgServiceImpl implements SendMsgService { ...@@ -366,7 +366,7 @@ public class SendMsgServiceImpl implements SendMsgService {
OkHttpUtil okHttpUtil = OkHttpUtil.builder().url(url); OkHttpUtil okHttpUtil = OkHttpUtil.builder().url(url);
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("touser", openId); map.put("touser", openId);
map.put("template_id", "D03X6N8zIiFrkbsVWFixJrvubLTS0yA-An1-rzuz5e4"); map.put("template_id", "D03X6N8zIiFrkbsVWFixJvbDgdqMHhHw89sZsrp-Jj8");
Map<String, Object> miniprogramMap = new HashMap<>(); Map<String, Object> miniprogramMap = new HashMap<>();
miniprogramMap.put("appid", APPLET_APPID); miniprogramMap.put("appid", APPLET_APPID);
StringBuffer stringBuffer = new StringBuffer(AUCTION_MSG_URL); StringBuffer stringBuffer = new StringBuffer(AUCTION_MSG_URL);
...@@ -382,9 +382,9 @@ public class SendMsgServiceImpl implements SendMsgService { ...@@ -382,9 +382,9 @@ public class SendMsgServiceImpl implements SendMsgService {
put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20)); put("value", auctionOfferNoticeMsg.getItemName().substring(0, 20));
}}); }});
paramMap.put("amount2", new HashMap() {{ paramMap.put("amount2", new HashMap() {{
put("value", auctionOfferNoticeMsg.getAmount()); put("value", auctionOfferNoticeMsg.getCurrentPrice());
}}); }});
String content = "竞拍将在一小时内结束"; String content = DateUtils.toString(auctionOfferNoticeMsg.getAuctionEndTime());
paramMap.put("time3", new HashMap() {{ paramMap.put("time3", new HashMap() {{
put("value", content); put("value", content);
}}); }});
......
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