|
@@ -252,14 +252,16 @@ public class WeChatUtil {
|
|
|
String token = this.getToken();
|
|
|
|
|
|
String url = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=" + token;
|
|
|
+
|
|
|
+ String param = "{\"touser\":\"o-HEJ6RAjBDjFvuZcAdHRX8mIZXw\",\"template_id\":\"HU2LfMIes91Au9kxR3VEoNYuMayxZoPNsFRfWNCmKrQ\",\"url\":\"https://test.baoxianzhanggui.com/fragrance/\",\"data\":{\"thing01\":{\"value\":\"23010000010101\"},\"thing02\":{\"value\":\"18360233903\"},\"thing03\":{\"value\":\"李四\"},\"thing04\":{\"value\":\"2022年11月11日22:22\"},\"thing05\":{\"value\":\"湖南长沙岳麓\"}}}";
|
|
|
cn.hutool.json.JSONObject param1 = JSONUtil.createObj();
|
|
|
param1.put("touser", openid);
|
|
|
param1.put("template_id", wxPayProperties.getTemplateId1());
|
|
|
param1.put("url", "https://test.baoxianzhanggui.com/fragrance/");
|
|
|
param1.put("data", data);
|
|
|
- String result = HttpUtil.post(url, param1);
|
|
|
+ String result = HttpUtil.post(url, param);
|
|
|
System.out.println(result);
|
|
|
- log.info("notification-消息通知请求参数:{}", param1.toString());
|
|
|
+ log.info("notification-消息通知请求参数:{}", param);
|
|
|
Map<?, ?> map = JSONObject.parseObject(result, Map.class);
|
|
|
log.info("notification-消息通知返回参数:{}", map);
|
|
|
return map;
|