zhangchen hai 3 meses
pai
achega
1cebac0d43

+ 2 - 1
alien-store/src/main/java/shop/alien/store/service/impl/LifeUserViolationServiceImpl.java

@@ -166,9 +166,10 @@ public class LifeUserViolationServiceImpl extends ServiceImpl<LifeUserViolationM
 
         lifeNotice.setReceiverId(phoneId);
 
-        String violationText = EnumUtil.getStatusValue(Integer.parseInt(lifeuserViolation.getViolationType()));
 
         if(StringUtils.isNotEmpty(reportContextType)){
+            String violationType = StringUtils.isNotEmpty(lifeuserViolation.getViolationType())?lifeuserViolation.getViolationType():"13";
+            String violationText = EnumUtil.getStatusValue(Integer.parseInt(violationType));
             switch (reportContextType) {
                 case "1":
                     message = "您在" + storeDate + "举报用户“" + storeOrUserName + "”,涉嫌"+violationText+",已提交至平台审核,1-3个工作日会将审核结果发送到您应用内的消息-通知中,请注意查收。";