Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop into feature/pg

This commit is contained in:
paulGao 2022-04-11 14:18:39 +08:00
commit 881f039e44

View File

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