|
@@ -209,6 +209,9 @@ public class WeChatUtil {
|
|
}
|
|
}
|
|
String token = this.getToken(WeChatType.WEWEB);
|
|
String token = this.getToken(WeChatType.WEWEB);
|
|
String result = HttpUtil.post("https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token, JSONObject.toJSONString(object));
|
|
String result = HttpUtil.post("https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token, JSONObject.toJSONString(object));
|
|
|
|
+ if(!result.contains("ok")){
|
|
|
|
+ log.error(JSONObject.toJSONString(object), result);
|
|
|
|
+ }
|
|
System.out.printf(result);
|
|
System.out.printf(result);
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|