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
3cf70afa
Commit
3cf70afa
authored
May 22, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
266f4b6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
QywxCallbackController.java
.../haoban/manage/web/controller/QywxCallbackController.java
+29
-0
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/QywxCallbackController.java
0 → 100644
View file @
3cf70afa
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
org.apache.commons.io.IOUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
@Controller
public
class
QywxCallbackController
extends
WebBaseController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
QywxCallbackController
.
class
);
@RequestMapping
(
"qywx-msg-notice"
)
public
Object
callback
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
IOException
{
try
{
String
body
=
IOUtils
.
toString
(
request
.
getInputStream
())
;
logger
.
info
(
"企微消费下发={}"
,
body
);
}
catch
(
Exception
e
)
{
logger
.
info
(
"异常"
,
e
);
}
return
"ok"
;
}
}
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