微信消息删除调用时,微信返回参数无法解析,尝试解决此问题。

This commit is contained in:
Chopper 2022-03-15 17:16:24 +08:00
parent 203a30a236
commit a2a28af41d

View File

@ -91,7 +91,7 @@ public class WechatMessageServiceImpl extends ServiceImpl<WechatMessageMapper, W
oldList.forEach(templateId -> {
Map<String, Object> params = new HashMap<>(1);
params.put("template_id", templateId);
String message = WechatMessageUtil.wechatHandler(HttpUtil.post(delMsgTpl + accessToken, params));
String message = WechatMessageUtil.wechatHandler(HttpUtils.doPostWithJson(delMsgTpl + accessToken, params));
log.info("删除模版请求:{},删除模版响应:{}", params, message);
});
}