提交 d7b53cb7 作者: 沈振路

发送客服消息每一条使用try catch捕获异常

上级 0d88aedd
...@@ -232,6 +232,7 @@ public class CustomerGraphicsServiceImpl extends ServiceImpl<CustomerGraphicsMap ...@@ -232,6 +232,7 @@ public class CustomerGraphicsServiceImpl extends ServiceImpl<CustomerGraphicsMap
for (CustomerGraphics customerGraphics : customerGraphicsList) { for (CustomerGraphics customerGraphics : customerGraphicsList) {
try {
LOCAL_LOG.info("{} start sendCustomerMessage:{}",customerGraphics.getId(),System.currentTimeMillis()); LOCAL_LOG.info("{} start sendCustomerMessage:{}",customerGraphics.getId(),System.currentTimeMillis());
//人群包id //人群包id
Long packId = customerGraphics.getPackId(); Long packId = customerGraphics.getPackId();
...@@ -284,6 +285,9 @@ public class CustomerGraphicsServiceImpl extends ServiceImpl<CustomerGraphicsMap ...@@ -284,6 +285,9 @@ public class CustomerGraphicsServiceImpl extends ServiceImpl<CustomerGraphicsMap
//客服状态修改 //客服状态修改
customerGraphics.setSendStatus(CustomerCommonConstant.SEND_STATUS_FINISHED); customerGraphics.setSendStatus(CustomerCommonConstant.SEND_STATUS_FINISHED);
LOCAL_LOG.info("{} finished:{}",customerGraphics.getId(),System.currentTimeMillis()); LOCAL_LOG.info("{} finished:{}",customerGraphics.getId(),System.currentTimeMillis());
} catch (Exception e) {
LOCAL_LOG.error("send CustomerMessage failed for {}", customerGraphics.getId(), e);
}
} }
updateBatchById(customerGraphicsList); updateBatchById(customerGraphicsList);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论