优化xss过滤,使用owasp的预设规则过滤。优化代码

This commit is contained in:
paulGao
2022-01-07 17:46:42 +08:00
parent ddd7c336cf
commit 9a6102e887
5 changed files with 27 additions and 23 deletions

View File

@@ -133,6 +133,7 @@ public class GoodsMessageListener implements RocketMQListener<MessageExt> {
case GENERATOR_GOODS_INDEX:
try {
String goodsId = new String(messageExt.getBody());
log.info("生成索引: {}", goodsId);
Goods goods = this.goodsService.getById(goodsId);
updateGoodsIndex(goods);
} catch (Exception e) {