lileilei пре 2 година
родитељ
комит
636b21be00
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      src/main/java/com/yixin/ms/service/impl/HealthCodeServiceImpl.java

+ 5 - 1
src/main/java/com/yixin/ms/service/impl/HealthCodeServiceImpl.java

@@ -344,7 +344,11 @@ public class HealthCodeServiceImpl implements HealthCodeService {
                 }
                 userVO.setOpenMsg(openMsg).setOpenVoiceMsg(openMsg);
             } else {
-                userVO.setIsOpen(HealthOpenEnum.RELEASE.getCode()).setOpenMsg("绿码,请通行").setOpenVoiceMsg("绿码,请通行");
+                if (placeInfoVO != null && placeInfoVO.getScenicFlag()){
+                    userVO.setIsOpen(HealthOpenEnum.RELEASE.getCode()).setOpenMsg("绿码,欢迎入园").setOpenVoiceMsg("绿码,欢迎入园");
+                }else{
+                    userVO.setIsOpen(HealthOpenEnum.RELEASE.getCode()).setOpenMsg("绿码,请通行").setOpenVoiceMsg("绿码,请通行");
+                }
             }
 
             if (CollectionUtil.isNotEmpty(nucleinList)) {