微信同步消息时删除模板问题

This commit is contained in:
fengtianyangyang 2022-04-11 11:23:02 +08:00
parent 3439b7aee5
commit c0391e3fc1

View File

@ -87,14 +87,14 @@ public class WechatMessageServiceImpl extends ServiceImpl<WechatMessageMapper, W
oldList.add(JSONUtil.parseObj(item).getStr("template_id"));
});
}
if (oldList.size() != 0) {
/* if (oldList.size() != 0) {
oldList.forEach(templateId -> {
Map<String, Object> params = new HashMap<>(1);
params.put("template_id", templateId);
String message = WechatMessageUtil.wechatHandler(HttpUtils.doPostWithJson(delMsgTpl + accessToken, params));
log.info("删除模版请求:{},删除模版响应:{}", params, message);
});
}
}*/
//加入数据
List<WechatMessageData> tmpList = initData();