|
|
@@ -181,6 +181,11 @@ public class UserService {
|
|
|
user.setSex(sex);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(bg)) {
|
|
|
+ if (!bg.equals(user.getBg())) {
|
|
|
+ if (!contentAuditService.auditImage(bg)) {
|
|
|
+ throw new BusinessException("头像包含敏感信息");
|
|
|
+ }
|
|
|
+ }
|
|
|
user.setBg(bg);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(intro)) {
|