Commit 5a1f9dd4 authored by liwei's avatar liwei

修改了bug

parent c887508b
......@@ -87,9 +87,10 @@ public class CmsNewsServiceImpl extends ServiceImpl<CmsNewsRepository, CmsNews>
if (ObjectUtil.isNotNull(check)) {
throw new CyServiceException(500, "权重已存在");
} else {
//移除16进制表情
cmsNews.setDetails(cmsNews.getDetails().replaceAll("[\uD83C-\uDBFF\uDC00-\uDFFF]", ""));
if (cmsNews.getDetails() != null) {
//移除16进制表情
cmsNews.setDetails(cmsNews.getDetails().replaceAll("[\uD83C-\uDBFF\uDC00-\uDFFF]", ""));
}
int line = baseMapper.insert(cmsNews);
//判断如果当前用户为商家管理员 将这个与商家管理员进行绑定
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment