|
@@ -93,8 +93,10 @@ public class WxMessageEvenServiceImpl implements IWxMessageEvenService {
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
map.put("touser",openid);
|
|
map.put("touser",openid);
|
|
map.put("msgtype","text");
|
|
map.put("msgtype","text");
|
|
- map.put("text",new HashMap<String,Object>()
|
|
|
|
- .put("content","用户openid:"+fromUserName+"\n内容:成功绑定下级"+"\n备注:测试文字链<a href=\"http://www.qq.com\" data-miniprogram-appid=\"appid\" data-miniprogram-path=\"pages/index/index\">点击跳小程序</a>"));
|
|
|
|
|
|
+ HashMap<String, Object> contentMap = new HashMap<>();
|
|
|
|
+// contentMap.put("content","用户openid:"+fromUserName+"\n内容:成功绑定下级"+"\n备注:测试文字链<a href=\"http://www.qq.com\" data-miniprogram-appid=\"appid\" data-miniprogram-path=\"pages/index/index\">点击跳小程序</a>");
|
|
|
|
+ contentMap.put("content","用户openid:"+fromUserName);
|
|
|
|
+ map.put("text",contentMap);
|
|
String jsonString = JSON.toJSONString(map);
|
|
String jsonString = JSON.toJSONString(map);
|
|
String path = messageCustomSend + token;
|
|
String path = messageCustomSend + token;
|
|
JSONObject jsonObject = HttpUtils.httpRequest(path, "POST", jsonString);
|
|
JSONObject jsonObject = HttpUtils.httpRequest(path, "POST", jsonString);
|