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
2b9604d1
Commit
2b9604d1
authored
Jul 22, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/xgh/2406企微托管' into 'developer'
托管回调 See merge request
!2044
parents
bc067075
b7a296d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
QywxCallbackController.java
.../haoban/manage/web/controller/QywxCallbackController.java
+5
-0
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/QywxCallbackController.java
View file @
2b9604d1
...
...
@@ -12,6 +12,7 @@ import com.gic.haoban.task.manage.api.enums.OpenQwMsgTypeEnum;
import
com.gic.mq.sdk.GicMQClient
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.sql.Struct
;
import
java.util.*
;
@Controller
...
...
@@ -41,6 +43,9 @@ public class QywxCallbackController extends WebBaseController {
try
{
String
body
=
IOUtils
.
toString
(
request
.
getInputStream
())
;
logger
.
info
(
"企微消息下发={}"
,
body
);
if
(
StringUtils
.
isBlank
(
body
))
{
return
"ok"
;
}
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
body
)
;
int
type
=
jsonObject
.
getIntValue
(
"type"
)
;
String
uuid
=
jsonObject
.
getString
(
"uuid"
)
;
...
...
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