|
@@ -110,11 +110,6 @@ public class VisitorMainService extends SuperService {
|
|
|
return ResultContent.buildFail("组件不存在");
|
|
return ResultContent.buildFail("组件不存在");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- VisitorSetting visitorSetting = visitorSettingDao.findTopBySceneComponentId(sceneComponentId);
|
|
|
|
|
- if (ObjectUtils.isEmpty(visitorSetting)) {
|
|
|
|
|
- return ResultContent.buildFail("访客组件参数未配置");
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
String projectOid = sceneComponent.getProjectOid();
|
|
String projectOid = sceneComponent.getProjectOid();
|
|
|
if (StringUtils.isEmpty(projectOid)) {
|
|
if (StringUtils.isEmpty(projectOid)) {
|
|
|
projectOid = getCurrentProjectOid();
|
|
projectOid = getCurrentProjectOid();
|
|
@@ -122,6 +117,12 @@ public class VisitorMainService extends SuperService {
|
|
|
if (StringUtils.isEmpty(projectOid)) {
|
|
if (StringUtils.isEmpty(projectOid)) {
|
|
|
return ResultContent.buildFail("projectOid 信息为空");
|
|
return ResultContent.buildFail("projectOid 信息为空");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ VisitorSetting visitorSetting = visitorSettingDao.findTopBySceneComponentIdAndProjectOid(sceneComponentId, projectOid);
|
|
|
|
|
+ if (ObjectUtils.isEmpty(visitorSetting)) {
|
|
|
|
|
+ return ResultContent.buildFail("访客组件参数未配置");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
UserAccount visitorUserAccount = userCountDao.findTopByUserId(param.getVisitorUserId());
|
|
UserAccount visitorUserAccount = userCountDao.findTopByUserId(param.getVisitorUserId());
|
|
|
if (ObjectUtils.isEmpty(visitorUserAccount)) {
|
|
if (ObjectUtils.isEmpty(visitorUserAccount)) {
|
|
|
return ResultContent.buildFail("被访人不存在");
|
|
return ResultContent.buildFail("被访人不存在");
|