Commit 778f36b4 authored by 何金镒's avatar 何金镒

建发社区接口优化 22

parent 8e1a59d0
...@@ -91,7 +91,7 @@ public class CdcHttpUtils { ...@@ -91,7 +91,7 @@ public class CdcHttpUtils {
log.info("【{}】建发get请求:url:{}",sn,url); log.info("【{}】建发get请求:url:{}",sn,url);
CDCToken bySn = tokenService.findBySn(sn); CDCToken bySn = tokenService.findBySn(sn);
UserEntity userEntity = getOwner(bySn); UserEntity userEntity = getOwner(bySn);
if(userEntity==null){ if(userEntity==null || userEntity.roomInfo== null){
log.info("【{}】获取用户信息失败",sn); log.info("【{}】获取用户信息失败",sn);
return null; return null;
} }
...@@ -116,7 +116,7 @@ public class CdcHttpUtils { ...@@ -116,7 +116,7 @@ public class CdcHttpUtils {
log.info("【{}】建发post请求:url:{},body:{}",sn,url,body); log.info("【{}】建发post请求:url:{},body:{}",sn,url,body);
CDCToken bySn = tokenService.findBySn(sn); CDCToken bySn = tokenService.findBySn(sn);
UserEntity userEntity = getOwner(bySn); UserEntity userEntity = getOwner(bySn);
if(userEntity==null){ if(userEntity==null || userEntity.roomInfo== null){
log.info("【{}】获取用户信息失败",sn); log.info("【{}】获取用户信息失败",sn);
return null; return null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment