|
@@ -50,8 +50,10 @@ public class UserViolationController {
|
|
|
if (0 == reporting) {
|
|
|
return R.fail("举报失败");
|
|
|
} else {
|
|
|
- LifeNotice lifeNotice = getLifeNotice(lifeuserViolation);
|
|
|
- lifeNoticeMapper.insert(lifeNotice);
|
|
|
+ if (lifeuserViolation.getReportContextType().equals("4") || lifeuserViolation.getReportContextType().equals("5")) {
|
|
|
+ LifeNotice lifeNotice = getLifeNotice(lifeuserViolation);
|
|
|
+ lifeNoticeMapper.insert(lifeNotice);
|
|
|
+ }
|
|
|
return R.data("举报成功");
|
|
|
}
|
|
|
}
|