Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
433c65ae
Commit
433c65ae
authored
Oct 12, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公众号
parent
5edb3a02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/OfficialAccountController.java
...in/java/com/wwdz/ch/wx/api/OfficialAccountController.java
+5
-3
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/OfficialAccountController.java
View file @
433c65ae
...
@@ -36,7 +36,8 @@ public class OfficialAccountController {
...
@@ -36,7 +36,8 @@ public class OfficialAccountController {
@RequestMapping
(
value
=
"/getNotice"
)
@RequestMapping
(
value
=
"/getNotice"
)
public
String
getSubscribeNotice
(
HttpServletRequest
request
,
HttpServletResponse
response
){
public
String
getNotice
(
HttpServletRequest
request
,
HttpServletResponse
response
){
logger
.
info
(
"1111111111111111"
);
ByteArrayOutputStream
output
=
null
;
ByteArrayOutputStream
output
=
null
;
InputStream
input
=
null
;
InputStream
input
=
null
;
try
{
try
{
...
@@ -83,11 +84,12 @@ public class OfficialAccountController {
...
@@ -83,11 +84,12 @@ public class OfficialAccountController {
@RequestMapping
(
value
=
"/getSubscribeNotice"
)
@RequestMapping
(
value
=
"/getSubscribeNotice"
)
public
Object
getNotice
(
@RequestParam
(
required
=
false
,
name
=
"signature"
)
String
signature
,
public
Object
get
Subscribe
Notice
(
@RequestParam
(
required
=
false
,
name
=
"signature"
)
String
signature
,
@RequestParam
(
required
=
false
,
name
=
"timestamp"
)
String
timestamp
,
@RequestParam
(
required
=
false
,
name
=
"timestamp"
)
String
timestamp
,
@RequestParam
(
required
=
false
,
name
=
"nonce"
)
String
nonce
,
@RequestParam
(
required
=
false
,
name
=
"nonce"
)
String
nonce
,
@RequestParam
(
required
=
false
,
name
=
"echostr"
)
String
echostr
,
@RequestParam
(
required
=
false
,
name
=
"echostr"
)
String
echostr
,
@RequestBody
(
required
=
false
)
String
xml
)
{
@RequestBody
(
required
=
false
)
String
xml
)
{
logger
.
info
(
"222222222222222"
);
try
{
try
{
List
<
Map
<
String
,
String
>>
list
=
XmlUtils
.
fromXml
(
xml
,
"xml"
);
List
<
Map
<
String
,
String
>>
list
=
XmlUtils
.
fromXml
(
xml
,
"xml"
);
Map
<
String
,
String
>
contentMap
=
list
.
get
(
0
);
Map
<
String
,
String
>
contentMap
=
list
.
get
(
0
);
...
@@ -101,7 +103,7 @@ public class OfficialAccountController {
...
@@ -101,7 +103,7 @@ public class OfficialAccountController {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"视频号回调推送error : {}"
,
e
);
logger
.
error
(
"视频号回调推送error : {}"
,
e
);
}
}
return
"success"
;
return
echostr
;
}
}
...
...
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