|
@@ -74,7 +74,8 @@ public class WxCommentController extends BaseController {
|
|
|
public Result save(@Valid @RequestBody WxCommentRequest param) throws Exception {
|
|
|
|
|
|
WxCommentEntity entity = new WxCommentEntity();
|
|
|
- String comment = entity.getComment();
|
|
|
+ String comment = param.getComment();
|
|
|
+ log.info("comment:{}", comment);
|
|
|
String s = wxMsgCheck(comment);
|
|
|
|
|
|
JSONObject reJson = JSONObject.parseObject(s);
|
|
@@ -143,11 +144,13 @@ public class WxCommentController extends BaseController {
|
|
|
// String AccessToken = "35_fgwbTUFcmsorNtFCEF0bi1qimwmLizUmo_P8wLki-Tc9Lhvdy9cLyUuVD7tI5mvCGrA4CkMHXL89mxZ5l1BZIO4H5Pjop-ugvPa0OZ1TKFbVqUjLK4xWycqIT6AqGaS1guv54Sq1gr36U_4NCHHgABAKPP";
|
|
|
String url = "https://api.weixin.qq.com/wxa/msg_sec_check?access_token=" + getAccessToken();
|
|
|
// String url = "https://api.weixin.qq.com/wxa/msg_sec_check?access_token=" + AccessToken;
|
|
|
-
|
|
|
+ log.info("url:{}",url);
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("content", msg);
|
|
|
+ String s = HttpClientUtil.doPostJson(url, jsonObject.toJSONString());
|
|
|
+ log.info("wx返回值:{}",s);
|
|
|
|
|
|
- return HttpClientUtil.doPostJson(url, jsonObject.toJSONString());
|
|
|
+ return s;
|
|
|
}
|
|
|
|
|
|
|