zoujiajian 3 년 전
부모
커밋
e3588c1d1c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      netflix-service/src/main/java/com/cyksj/service/corp/impl/CorpEventActionServiceImpl.java

+ 2 - 0
netflix-service/src/main/java/com/cyksj/service/corp/impl/CorpEventActionServiceImpl.java

@@ -310,6 +310,7 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
 				.eq(WxCorpApp::getCorpId, corpId).last("limit 1"));
 		if (wxCorpApp == null) {
 			log.error("企业微信:{}配置不存在", corpId);
+			return null;
 		}
 		if (initCorpGroupsChat(wxCorpApp)) {
 			return null;
@@ -392,6 +393,7 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
 				.eq(WxCorpApp::getCorpId, corpId).last("limit 1"));
 		if (wxCorpApp == null) {
 			log.error("企业微信:{}配置不存在", corpId);
+			return null;
 		}
 		if (initCorpGroupsChat(wxCorpApp)) {
 			return null;