微信消息删除调用时,微信返回参数无法解析,尝试解决此问题。
This commit is contained in:
parent
203a30a236
commit
a2a28af41d
@ -91,7 +91,7 @@ public class WechatMessageServiceImpl extends ServiceImpl<WechatMessageMapper, W
|
|||||||
oldList.forEach(templateId -> {
|
oldList.forEach(templateId -> {
|
||||||
Map<String, Object> params = new HashMap<>(1);
|
Map<String, Object> params = new HashMap<>(1);
|
||||||
params.put("template_id", templateId);
|
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);
|
log.info("删除模版请求:{},删除模版响应:{}", params, message);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user