Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
89595341
Commit
89595341
authored
Jan 15, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仅代开发调整
parent
ca16e0ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
ChatEventDTO.java
...java/com/gic/haoban/manage/api/dto/chat/ChatEventDTO.java
+11
-0
GroupChatApiServiceImpl.java
...ervice/service/out/impl/chat/GroupChatApiServiceImpl.java
+9
-2
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/chat/ChatEventDTO.java
View file @
89595341
...
...
@@ -18,6 +18,17 @@ public class ChatEventDTO implements Serializable {
private
String
corpid
;
// 是否自建应用的回调
private
int
selfCallback
=
0
;
// 用于判断是否代开发应用的回调
private
String
suiteId
;
public
String
getSuiteId
()
{
return
suiteId
;
}
public
void
setSuiteId
(
String
suiteId
)
{
this
.
suiteId
=
suiteId
;
}
public
int
getSelfCallback
()
{
return
selfCallback
;
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/chat/GroupChatApiServiceImpl.java
View file @
89595341
...
...
@@ -75,6 +75,7 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
private
GroupChatMapper
groupChatMapper
;
@Autowired
private
GroupChatUserMapper
groupChatUserMapper
;
private
static
final
String
SELF_APP
=
"selfSuiteId"
;
@Override
public
ServiceResponse
<
Page
<
GroupChatDTO
>>
listPage
(
GroupChatSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
...
...
@@ -229,8 +230,14 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
}
String
wxEnterpriseId
=
wxEnterprise
.
getWxEnterpriseId
();
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
);
if
(
qwDTO
.
isSelf
()
&&
dto
.
getSelfCallback
()==
0
)
{
logger
.
info
(
"非自建应用回调"
);
if
(
qwDTO
.
getWxSecurityType
()==
5
)
{
if
(
qwDTO
.
isSelf
()
&&
dto
.
getSelfCallback
()
==
0
)
{
logger
.
info
(
"非自建应用回调"
);
return
ServiceResponse
.
success
();
}
}
if
(
qwDTO
.
getWxSecurityType
()
!=
6
&&
StringUtils
.
isNotBlank
(
dto
.
getSuiteId
())
&&
SELF_APP
.
equals
(
dto
.
getSuiteId
()))
{
logger
.
info
(
"非仅代开的不处理代发的回调"
);
return
ServiceResponse
.
success
();
}
// 群解散事件
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment