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
c7608810
Commit
c7608810
authored
Mar 11, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/xgh/20241月迭代' into 'developer'
自建通讯录回调 See merge request
!1679
parents
4394dee6
28324b54
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+19
-7
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
c7608810
...
...
@@ -165,6 +165,20 @@ public class MessageApiServiceImpl implements MessageApiService {
}
}
private
String
getWxEnterpriseId
(
String
corpid
)
{
String
wxEnterpriseId
=
null
;
TabHaobanWxApplication
wxApplication
=
wxApplicationService
.
selectByCorpId
(
corpid
);
if
(
null
==
wxApplication
)
{
TabHaobanWxEnterprise
wxEnterprise
=
this
.
wxEnterpriseService
.
getEnterpriseBycorpId
(
corpid
)
;
if
(
null
!=
wxEnterprise
)
{
wxEnterpriseId
=
wxEnterprise
.
getWxEnterpriseId
()
;
}
}
else
{
wxEnterpriseId
=
wxApplication
.
getWxEnterpriseId
();
}
return
wxEnterpriseId
;
}
@Override
public
void
dealWxMessage
(
String
param
)
{
QywxCallBackDTO
dto
=
JSON
.
parseObject
(
param
,
QywxCallBackDTO
.
class
);
...
...
@@ -174,12 +188,11 @@ public class MessageApiServiceImpl implements MessageApiService {
log
.
info
(
"通讯录只处理自建应用回调 dto={}"
,
JSON
.
toJSONString
(
param
));
return
;
}
TabHaobanWxApplication
wxApplication
=
wxApplicationService
.
selectByCorpId
(
dto
.
getAuthCorpId
())
;
if
(
Objects
.
isNull
(
wxApplication
)
)
{
String
wxEnterpriseId
=
this
.
getWxEnterpriseId
(
dto
.
getAuthCorpId
())
;
if
(
null
==
wxEnterpriseId
)
{
log
.
info
(
"授权企业不存在,{}"
,
dto
.
getAuthCorpId
());
return
;
}
String
wxEnterpriseId
=
wxApplication
.
getWxEnterpriseId
();
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
)
;
if
(
qwDTO
.
isSelf
()
&&
dto
.
getSelfCallback
()==
0
)
{
log
.
info
(
"非自建应用回调"
);
...
...
@@ -448,12 +461,11 @@ public class MessageApiServiceImpl implements MessageApiService {
String
authCorpId
=
qywxCallBackDTO
.
getAuthCorpId
();
DepartmentDTO
departmentDTO
=
new
DepartmentDTO
();
departmentDTO
.
setIsStore
(
0
);
TabHaobanWxApplication
wxApplication
=
wxApplicationService
.
selectByCorpId
(
authCorpId
)
;
if
(
Objects
.
isNull
(
wxApplication
)
)
{
log
.
info
(
"授权企业不存在,{}"
,
qywxCallBackDTO
.
getAuthCorpId
()
);
String
wxEnterpriseId
=
this
.
getWxEnterpriseId
(
authCorpId
)
;
if
(
null
==
wxEnterpriseId
)
{
log
.
info
(
"授权企业不存在,{}"
,
authCorpId
);
return
;
}
String
wxEnterpriseId
=
wxApplication
.
getWxEnterpriseId
();
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
)
;
SecretSettingDTO
secretSetting
=
secretSettingService
.
getSecretSetting
(
wxEnterpriseId
,
SecretTypeEnum
.
CUSTOMIZED_APP
.
getVal
());
...
...
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