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
1
Merge Requests
1
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
d3faa3c5
Commit
d3faa3c5
authored
Mar 01, 2022
by
xugaojun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放开代开发回调内容,限制提前
parent
5d6811c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+13
-11
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
d3faa3c5
...
...
@@ -109,11 +109,19 @@ public class MessageApiServiceImpl implements MessageApiService {
@Override
public
void
wxMessageReceive
(
QywxCallBackDTO
qywxCallBackDTO
)
{
GicMQClient
clientInstance
=
GICMQClientUtil
.
getClientInstance
();
// 处理定制-目前鸿星尔克用
boolean
checkErkeDeal
=
checkErkeDeal
(
qywxCallBackDTO
);
if
(!
checkErkeDeal
)
{
log
.
info
(
"不符合鸿星尔克需求,返回"
);
return
;
}
try
{
if
(
config
.
getSuiteId
().
equals
(
qywxCallBackDTO
.
getSuiteId
())
||
CONTACT_APP
.
equals
(
qywxCallBackDTO
.
getSuiteId
()))
{
log
.
info
(
"发送消息到dealWxMessageMq,{}"
,
JSON
.
toJSONString
(
qywxCallBackDTO
));
clientInstance
.
sendMessage
(
"dealWxMessageMq"
,
JSON
.
toJSONString
(
qywxCallBackDTO
));
}
// 放开限制
// if (config.getSuiteId().equals(qywxCallBackDTO.getSuiteId()) || CONTACT_APP.equals(qywxCallBackDTO.getSuiteId())) {
// }
log
.
info
(
"发送消息到dealWxMessageMq,{}"
,
JSON
.
toJSONString
(
qywxCallBackDTO
));
clientInstance
.
sendMessage
(
"dealWxMessageMq"
,
JSON
.
toJSONString
(
qywxCallBackDTO
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
@@ -123,18 +131,12 @@ public class MessageApiServiceImpl implements MessageApiService {
public
void
dealWxMessage
(
String
param
)
{
QywxCallBackDTO
dto
=
JSON
.
parseObject
(
param
,
QywxCallBackDTO
.
class
);
log
.
info
(
"【处理微信回调】dto={}"
,
JSON
.
toJSONString
(
param
));
// 处理定制-目前鸿星尔克用
boolean
checkErkeDeal
=
checkErkeDeal
(
dto
);
if
(!
checkErkeDeal
)
{
log
.
info
(
"不符合鸿星尔克需求,返回"
);
return
;
}
TabHaobanWxEnterprise
enterprise
=
enterpriseService
.
getEnterpriseBycorpId
(
dto
.
getAuthCorpId
());
if
(
Objects
.
isNull
(
enterprise
))
{
log
.
info
(
"通过corpId:【{}】未查询到授权企业,无法处理"
,
dto
.
getAuthCorpId
());
return
;
}
// 校验适用企业
// 校验适用企业
-定制
boolean
suitWxEnterpriseIid
=
checkSuitEnterpriseId
(
enterprise
.
getWxEnterpriseId
());
if
(!
suitWxEnterpriseIid
)
{
log
.
info
(
"微信企业id:{}, 不适用"
,
enterprise
.
getWxEnterpriseId
());
...
...
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