Browse Source

style:文案显示

lileilei 2 years ago
parent
commit
636b21be00

+ 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)) {